vegastrike
0.5.1.r1
|
#include <star_system.h>
Public Member Functions | |
virtual | ~GameStarSystem () |
GameStarSystem (const char *filename, const Vector ¢r=Vector(0, 0, 0), const float timeofyear=0) | |
Background * | getBackground () |
void | activateLightMap (int stage=1) |
activates the light map texture More... | |
Texture * | getLightMap () |
Terrain * | getTerrain (unsigned int which) |
unsigned int | numTerrain () |
activates the light map texture More... | |
ContinuousTerrain * | getContTerrain (unsigned int which) |
unsigned int | numContTerrain () |
ClickList * | getClickList () |
Loads the star system from an XML file returns xy sorted bounding spheres of all units in current view. More... | |
void | Draw (bool DrawCockpit=true) |
Adds to draw list Draws a frame of action, interpolating between physics frames. More... | |
void | Update (float priority, bool executeDirector) |
update a simulation atom ExecuteDirector must be false if star system is just loaded before mission is loaded More... | |
void | SwapIn () |
re-enables the included lights and terrains More... | |
void | SwapOut () |
Disables included lights and terrains. More... | |
virtual void | VolitalizeJumpAnimation (const int ani) |
virtual void | DoJumpingComeSightAndSound (Unit *un) |
virtual int | DoJumpingLeaveSightAndSound (Unit *un) |
void | createBackground (StarSystem::StarXML *xml) |
![]() | |
StarSystem () | |
StarSystem (const char *filename, const Vector ¢roid=Vector(0, 0, 0), const float timeofyear=0) | |
virtual | ~StarSystem () |
void | SetZone (unsigned int zonenum) |
unsigned int | GetZone () |
virtual void | AddMissileToQueue (class MissileEffect *) |
virtual void | UpdateMissiles () |
void | UpdateUnitPhysics (bool firstframe) |
void | RequestPhysics (Unit *un, unsigned int queue) |
Requeues the unit so that it is simulated ASAP. More... | |
void | Update (float priority, bool executeDirector) |
update a simulation atom ExecuteDirector must be false if star system is just loaded before mission is loaded More... | |
void | Update (float priority) |
unsigned int | getCurrentSimFrame () const |
Gets the current simulation frame. More... | |
void | ExecuteUnitAI () |
std::string | getFileName () const |
std::string | getName () |
UnitCollection & | getUnitList () |
Loads the star system from an XML file. More... | |
UnitCollection & | gravitationalUnits () |
Unit * | nextSignificantUnit () |
void | AddUnit (Unit *unit) |
returns xy sorted bounding spheres of all units in current view Adds to draw list More... | |
bool | RemoveUnit (Unit *unit) |
Removes from draw list. More... | |
bool | JumpTo (Unit *unit, Unit *jumppoint, const std::string &system, bool force=false, bool save_coordinates=false) |
Static Public Member Functions | |
static void | DrawJumpStars () |
![]() | |
static void | beginElement (void *userData, const XML_Char *name, const XML_Char **atts) |
static void | endElement (void *userData, const XML_Char *name) |
static void | ProcessPendingJumps () |
Friends | |
class | Atmosphere |
Additional Inherited Members | |
![]() | |
struct StarSystem::Statistics | stats |
std::multimap< Unit *, Unit * > | last_collisions |
class CollideTable * | collidetable |
CollideMap * | collidemap [2] |
class bolt_draw * | bolts |
![]() | |
enum | PHYSICS_STAGE { MISSION_SIMULATION, PROCESS_UNIT, PHY_NUM } |
Physics is divided into 3 stages spread over 3 frames. More... | |
![]() | |
void | LoadXML (const char *, const Vector ¢roid, const float timeofyear) |
void | beginElement (const std::string &name, const AttributeList &attributes) |
void | endElement (const std::string &name) |
void | AddStarsystemToUniverse (const std::string &filename) |
The Light Map corresponding for the BP for spheremapping. More... | |
void | RemoveStarsystemFromUniverse () |
![]() | |
struct StarSystem::StarXML * | xml |
enum StarSystem::PHYSICS_STAGE | current_stage |
std::vector< Terrain * > | terrains |
Stars, planets, etc. Orbital mechanics precalculated. More... | |
std::vector< ContinuousTerrain * > | contterrains |
UnitCollection | drawList |
Everything to be drawn. Folded missiles in here oneday. More... | |
UnitCollection | GravitationalUnits |
UnitCollection | physics_buffer [SIM_QUEUE_SIZE+1] |
unsigned int | current_sim_location |
unsigned char | no_collision_time |
Objects subject to global gravitron physics (disabled) More... | |
char * | name |
system name More... | |
std::string | filename |
un_iter | sigIter |
double | time |
to track the next given physics frame More... | |
Stars * | stars |
The background associated with this system. More... | |
int | lightcontext |
std::vector< class MissileEffect * > | dischargedMissiles |
unsigned int | zone |
Star System Scene management for a star system Per-Frame Drawing & Physics simulation
Definition at line 21 of file star_system.h.
|
virtual |
Definition at line 115 of file star_system.cpp.
GameStarSystem::GameStarSystem | ( | const char * | filename, |
const Vector & | centr = Vector( 0, 0, 0 ) , |
||
const float | timeofyear = 0 |
||
) |
adds to jumping table;
Definition at line 46 of file star_system.cpp.
|
virtual |
activates the light map texture
Reimplemented from StarSystem.
Definition at line 95 of file star_system.cpp.
|
virtual |
Reimplemented from StarSystem.
Definition at line 422 of file star_system.cpp.
|
virtual |
Reimplemented from StarSystem.
Definition at line 124 of file star_system_jump.cpp.
|
virtual |
Reimplemented from StarSystem.
Definition at line 132 of file star_system_jump.cpp.
|
virtual |
Adds to draw list Draws a frame of action, interpolating between physics frames.
this is the final, smoothly calculated cam
Reimplemented from StarSystem.
Definition at line 228 of file star_system.cpp.
|
static |
Definition at line 86 of file star_system_jump.cpp.
|
inlinevirtual |
Reimplemented from StarSystem.
Definition at line 36 of file star_system.h.
|
virtual |
Loads the star system from an XML file returns xy sorted bounding spheres of all units in current view.
Reimplemented from StarSystem.
Definition at line 138 of file star_system.cpp.
|
inlinevirtual |
Reimplemented from StarSystem.
Definition at line 52 of file star_system.h.
|
virtual |
Reimplemented from StarSystem.
Definition at line 90 of file star_system.cpp.
|
inlinevirtual |
Reimplemented from StarSystem.
Definition at line 44 of file star_system.h.
|
inlinevirtual |
Reimplemented from StarSystem.
Definition at line 56 of file star_system.h.
|
inlinevirtual |
activates the light map texture
Reimplemented from StarSystem.
Definition at line 48 of file star_system.h.
|
virtual |
re-enables the included lights and terrains
Reimplemented from StarSystem.
Definition at line 149 of file star_system.cpp.
|
virtual |
Disables included lights and terrains.
Reimplemented from StarSystem.
Definition at line 154 of file star_system.cpp.
void GameStarSystem::Update | ( | float | priority, |
bool | executeDirector | ||
) |
update a simulation atom ExecuteDirector must be false if star system is just loaded before mission is loaded
|
virtual |
Reimplemented from StarSystem.
Definition at line 77 of file star_system_jump.cpp.
|
friend |
Definition at line 76 of file star_system.h.