vegastrike  0.5.1.r1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
star_system_generic.cpp File Reference
#include <assert.h>
#include "star_system_generic.h"
#include "gfx/vec.h"
#include "cmd/planet_generic.h"
#include "cmd/unit_generic.h"
#include "cmd/unit_collide.h"
#include "cmd/collection.h"
#include "gfx/cockpit_generic.h"
#include "audiolib.h"
#include "lin_time.h"
#include "cmd/beam.h"
#include "cmd/bolt.h"
#include <expat.h>
#include "cmd/music.h"
#include "configxml.h"
#include "vs_globals.h"
#include "vegastrike.h"
#include "universe_generic.h"
#include "cmd/nebula_generic.h"
#include "galaxy_gen.h"
#include "cmd/script/mission.h"
#include "in_kb.h"
#include "cmd/script/flightgroup.h"
#include "load_mission.h"
#include "cmd/unit_util.h"
#include "cmd/unit_factory.h"
#include "vs_random.h"
#include "savegame.h"
#include "networking/netclient.h"
#include "in_kb_data.h"
#include "universe_util.h"
#include <boost/version.hpp>
#include "cs_boostpython.h"

Go to the source code of this file.

Functions

void TentativeJumpTo (StarSystem *ss, Unit *un, Unit *jumppoint, const std::string &system)
 
float ScaleJumpRadius (float radius)
 
void ClientServerSetLightContext (int lightcontext)
 
void setStaticFlightgroup (vector< Flightgroup * > &fg, const std::string &nam, int faction)
 
Flightgroup * getStaticBaseFlightgroup (int faction)
 
Flightgroup * getStaticStarFlightgroup (int faction)
 
Flightgroup * getStaticNebulaFlightgroup (int faction)
 
Flightgroup * getStaticAsteroidFlightgroup (int faction)
 
Flightgroup * getStaticUnknownFlightgroup (int faction)
 
string RemoveDotSystem (const char *input)
 
Unit * getTopLevelOwner ()
 
void CarSimUpdate (Unit *un, float height)
 
void TerrainCollide ()
 
void UpdateAnimatedTexture ()
 
void UpdateCameraSnds ()
 
float getTimeCompression ()
 
void ExecuteDirector ()
 
StarSystemGetLoadedStarSystem (const char *system)
 
bool PendingJumpsEmpty ()
 
void SetShieldZero (Unit *)
 
double calc_blend_factor (double frac, int priority, unsigned int when_it_will_be_simulated, int cur_simulation_frame)
 
void ActivateAnimation (Unit *jumppoint)
 
QVector SystemLocation (std::string system)
 
double howFarToJump ()
 
QVector ComputeJumpPointArrival (QVector pos, std::string origin, std::string destination)
 

Variables

vector< Vector > perplines
 
std::vector< unorigdest * > pendingjump
 
unsigned int physicsframecounter = 1
 
unsigned int theunitcounter = 0
 
unsigned int totalprocessed = 0
 
unsigned int movingavgarray [128] = {0}
 
unsigned int movingtotal = 0
 
double aggfire = 0
 
int numprocessed = 0
 
double targetpick = 0
 
Hashtable< std::string,
StarSystem, 127 > 
star_system_table
 

Function Documentation

void ActivateAnimation ( Unit *  jumppoint)

Definition at line 893 of file star_system_generic.cpp.

double calc_blend_factor ( double  frac,
int  priority,
unsigned int  when_it_will_be_simulated,
int  cur_simulation_frame 
)

Definition at line 880 of file star_system_generic.cpp.

void CarSimUpdate ( Unit *  un,
float  height 
)

Definition at line 325 of file star_system_generic.cpp.

void ClientServerSetLightContext ( int  lightcontext)

Definition at line 41 of file universe_util.cpp.

QVector ComputeJumpPointArrival ( QVector  pos,
std::string  origin,
std::string  destination 
)

Definition at line 911 of file star_system_generic.cpp.

void ExecuteDirector ( )

Definition at line 617 of file star_system_generic.cpp.

StarSystem* GetLoadedStarSystem ( const char *  system)

Definition at line 786 of file star_system_generic.cpp.

Flightgroup* getStaticAsteroidFlightgroup ( int  faction)

Definition at line 195 of file star_system_generic.cpp.

Flightgroup* getStaticBaseFlightgroup ( int  faction)

Definition at line 172 of file star_system_generic.cpp.

Flightgroup* getStaticNebulaFlightgroup ( int  faction)

Definition at line 188 of file star_system_generic.cpp.

Flightgroup* getStaticStarFlightgroup ( int  faction)

Definition at line 180 of file star_system_generic.cpp.

Flightgroup* getStaticUnknownFlightgroup ( int  faction)

Definition at line 202 of file star_system_generic.cpp.

float getTimeCompression ( )

Definition at line 102 of file lin_time.cpp.

Unit* getTopLevelOwner ( )

Definition at line 320 of file star_system_generic.cpp.

double howFarToJump ( )
bool PendingJumpsEmpty ( )

Definition at line 797 of file star_system_generic.cpp.

string RemoveDotSystem ( const char *  input)

Definition at line 27 of file galaxy.cpp.

float ScaleJumpRadius ( float  radius)

Definition at line 64 of file star_system_generic.cpp.

void SetShieldZero ( Unit *  )
void setStaticFlightgroup ( vector< Flightgroup * > &  fg,
const std::string &  nam,
int  faction 
)

Definition at line 151 of file star_system_generic.cpp.

QVector SystemLocation ( std::string  system)
void TentativeJumpTo ( StarSystem ss,
Unit *  un,
Unit *  jumppoint,
const std::string &  system 
)

Definition at line 56 of file star_system_generic.cpp.

void TerrainCollide ( )

Definition at line 15 of file libserver.cpp.

void UpdateAnimatedTexture ( )

Definition at line 14 of file libserver.cpp.

void UpdateCameraSnds ( )

Definition at line 17 of file libserver.cpp.

Variable Documentation

double aggfire = 0

Definition at line 480 of file star_system_generic.cpp.

unsigned int movingavgarray[128] = {0}

Definition at line 478 of file star_system_generic.cpp.

unsigned int movingtotal = 0

Definition at line 479 of file star_system_generic.cpp.

int numprocessed = 0

Definition at line 481 of file star_system_generic.cpp.

std::vector< unorigdest * > pendingjump

Definition at line 795 of file star_system_generic.cpp.

vector< Vector > perplines

Definition at line 53 of file star_system_generic.cpp.

unsigned int physicsframecounter = 1

Definition at line 475 of file star_system_generic.cpp.

Hashtable< std::string, StarSystem, 127 > star_system_table

Definition at line 773 of file star_system_generic.cpp.

double targetpick = 0

Definition at line 482 of file star_system_generic.cpp.

unsigned int theunitcounter = 0

Definition at line 476 of file star_system_generic.cpp.

unsigned int totalprocessed = 0

Definition at line 477 of file star_system_generic.cpp.