Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#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.
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 |
void ActivateAnimation | ( | Unit * | jumppoint) |
Definition at line 893 of file star_system_generic.cpp.
References ActivateAnimation(), Unit::graphic_options::Animating, Unit::getSubUnits(), Unit::graphicOptions, and i.
Referenced by ActivateAnimation(), StarSystem::JumpTo(), and GameUnit< UnitType >::TransferUnitToSystem().
double calc_blend_factor | ( | double | frac, |
int | priority, | ||
unsigned int | when_it_will_be_simulated, | ||
int | cur_simulation_frame | ||
) |
Definition at line 325 of file star_system_generic.cpp.
References Unit::curr_physical_state, Unit::GetVelocity(), Transformation::position, QVector, Unit::SetVelocity(), and Vector.
void ClientServerSetLightContext | ( | int | lightcontext) |
Definition at line 41 of file universe_util.cpp.
References GFXSetLightContext().
Referenced by StarSystem::~StarSystem().
Definition at line 911 of file star_system_generic.cpp.
References howFarToJump(), QVector, start, and SystemLocation().
Referenced by StarSystem::JumpTo().
void ExecuteDirector | ( | ) |
Definition at line 617 of file star_system_generic.cpp.
References _Universe, Universe::AccessCockpit(), active_missions, Cockpit::activeStarSystem, Universe::CurrentCockpit(), i, mission, Universe::popActiveStarSystem(), processDelayedMissions(), Universe::pushActiveStarSystem(), and Universe::SetActiveCockpit().
Referenced by BaseInterface::BaseInterface(), Unit::ForceDock(), NetServer::start(), and StarSystem::Update().
StarSystem* GetLoadedStarSystem | ( | const char * | system) |
Definition at line 786 of file star_system_generic.cpp.
References Hashtable< KEY, VALUE, SIZ >::Get().
Referenced by ZoneMgr::addZone(), GameUniverse::GenerateStarSystem(), and Universe::GenerateStarSystem().
Flightgroup* getStaticAsteroidFlightgroup | ( | int | faction) |
Definition at line 195 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Flightgroup* getStaticBaseFlightgroup | ( | int | faction) |
Definition at line 172 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Referenced by Planet::beginElement().
Flightgroup* getStaticNebulaFlightgroup | ( | int | faction) |
Definition at line 188 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Flightgroup* getStaticStarFlightgroup | ( | int | faction) |
Definition at line 180 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Flightgroup* getStaticUnknownFlightgroup | ( | int | faction) |
Definition at line 202 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
float getTimeCompression | ( | ) |
Definition at line 102 of file lin_time.cpp.
References timecompression.
Referenced by Cockpit::Autopilot(), Mission::DirectorLoop(), BaseInterface::Room::BasePython::Draw(), GameCockpit::Draw(), BaseInterface::Room::BaseTalk::Draw(), Orders::AggressiveAI::Execute(), FlyByWire::Right(), FlyByWire::RollRight(), FlyByWire::Up(), PhysicsSystem::Update(), StarSystem::Update(), CockpitKeys::ZoomIn(), and CockpitKeys::ZoomOut().
Unit* getTopLevelOwner | ( | ) |
Definition at line 320 of file star_system_generic.cpp.
Referenced by Radar::CollectRadarTracks::acquire(), FireKeyboard::Execute(), UnitUtil::getPhysicsPriority(), UnitUtil::orbit(), and TargUn().
double howFarToJump | ( | ) |
Definition at line 2129 of file unit_generic.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by ComputeJumpPointArrival(), GameCockpit::Draw(), and Unit::UpdatePhysics().
|
static |
Definition at line 901 of file star_system_generic.cpp.
References i.
Referenced by StarSystem::JumpTo().
bool PendingJumpsEmpty | ( | ) |
Definition at line 797 of file star_system_generic.cpp.
References pendingjump.
Referenced by GameUniverse::StartDraw().
string RemoveDotSystem | ( | const char * | input) |
Definition at line 27 of file galaxy.cpp.
Definition at line 64 of file star_system_generic.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by Planet::beginElement().
void SetShieldZero | ( | Unit * | ) |
Definition at line 78 of file unit_functions_generic.cpp.
References Shield::number, Unit::shield, Shield::shield2fb, Shield::shield4fbrl, and Shield::shield8.
Referenced by StarSystem::ProcessPendingJumps(), and Unit::UpdatePhysics().
void setStaticFlightgroup | ( | vector< Flightgroup * > & | fg, |
const std::string & | nam, | ||
int | faction | ||
) |
Definition at line 151 of file star_system_generic.cpp.
References StarSystemGent::faction, and FactionUtil::GetFaction().
Referenced by getStaticAsteroidFlightgroup(), getStaticBaseFlightgroup(), getStaticNebulaFlightgroup(), getStaticStarFlightgroup(), and getStaticUnknownFlightgroup().
QVector SystemLocation | ( | std::string | system) |
Definition at line 2135 of file unit_generic.cpp.
References _Universe, Universe::getGalaxyProperty(), and QVector.
Referenced by ComputeJumpPointArrival(), GameCockpit::Draw(), NearestSystem(), and WarpPursuit().
void TentativeJumpTo | ( | StarSystem * | ss, |
Unit * | un, | ||
Unit * | jumppoint, | ||
const std::string & | system | ||
) |
Definition at line 56 of file star_system_generic.cpp.
References i, StarSystem::JumpTo(), and pendingjump.
void TerrainCollide | ( | ) |
Definition at line 15 of file libserver.cpp.
References Terrain::CollideAll().
Referenced by StarSystem::Update().
void UpdateAnimatedTexture | ( | ) |
Definition at line 14 of file libserver.cpp.
References update_ani_cache(), and AnimatedTexture::UpdateAllPhysics().
Referenced by StarSystem::Update().
void UpdateCameraSnds | ( | ) |
Definition at line 17 of file libserver.cpp.
References _Universe, Cockpit::AccessCamera(), Universe::AccessCockpit(), and Camera::UpdateCameraSounds().
Referenced by StarSystem::Update().
double aggfire = 0 |
Definition at line 480 of file star_system_generic.cpp.
Referenced by Orders::AggressiveAI::Execute(), and StarSystem::UpdateUnitPhysics().
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.
Referenced by Orders::FireAt::ChooseTargets(), and StarSystem::UpdateUnitPhysics().
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.
Referenced by Unit::querySphereClickList(), and ClickList::requestIterator().
unsigned int physicsframecounter = 1 |
Definition at line 475 of file star_system_generic.cpp.
Referenced by StarSystem::UpdateUnitPhysics().
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.
Referenced by Orders::FireAt::ChooseTargets(), and StarSystem::UpdateUnitPhysics().
unsigned int theunitcounter = 0 |
Definition at line 476 of file star_system_generic.cpp.
Referenced by StarSystem::UpdateUnitPhysics().
unsigned int totalprocessed = 0 |
Definition at line 477 of file star_system_generic.cpp.
Referenced by StarSystem::UpdateUnitPhysics().