Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Classes | |
class | PythonUnitIter |
Functions | |
void | startMenuInterface (bool firstTime, string error) |
UnitWrapper | newGetPlayer () |
void | setOwner (int obj, UnitWrapper un) |
void | playVictoryTune () |
int | musicAddList (string str) |
void | musicLayerSkip (int layer) |
this skips the current music track, at a specific layer (and goes to the next in the currently playing list) More... | |
void | musicLayerStop (int layer) |
this stops the music currently playing at a specific layer - with a nice fadeout More... | |
void | musicLayerPlaySong (string str, int layer) |
void | musicLayerPlayList (int which, int layer) |
this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList) More... | |
void | musicLayerLoopList (int numloops, int layer) |
this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList) More... | |
void | musicLayerSetSoftVolume (float vol, float latency_override, int layer) |
sets the software volume, with smooth transitions (latency_override==-1 uses default transition time) More... | |
void | musicLayerSetHardVolume (float vol, int layer) |
sets the hardware volume, does not support transitions of any kind. More... | |
void | musicSetSoftVolume (float vol, float latency_override) |
sets the software volume, with smooth transitions (latency_override==-1 uses default transition time) More... | |
void | musicSetHardVolume (float vol) |
sets the hardware volume, does not support transitions of any kind. More... | |
void | musicMute (bool stopSound) |
this mutes sound - or unmutes it More... | |
void | playSound (string soundName, QVector loc, Vector speed) |
void | playSoundCockpit (string soundName) |
void | StopAllSounds (void) |
void | cacheAnimation (string aniName) |
void | playAnimation (string aniName, QVector loc, float size) |
void | playAnimationGrow (string aniName, QVector loc, float size, float growpercent) |
unsigned int | getCurrentPlayer () |
unsigned int | maxMissions () |
void | addParticle (QVector loc, Vector velocity, Vector color, float size) |
void | loadGame (const string &savename) |
void | saveGame (const string &savename) |
void | showSplashScreen (const string &filename) |
void | showSplashMessage (const string &text) |
void | showSplashProgress (float progress) |
void | hideSplashScreen () |
bool | isSplashScreenShowing () |
void | sendCustom (int cp, string cmd, string args, string id) |
std::string | LookupUnitStat (const std::string &unitname, const std::string &faction, const std::string &statname) |
Unit * | GetUnitFromSerial (ObjSerial serial) |
Unit * | GetMasterPartList () |
this gets a unit with 1 of each cargo type in it More... | |
void | pushSystem (std::string name) |
this function sets the "current" system to be "name" where name may be something like "Sol/Sol" or "Crucible/Cephid_17" this function may take some time if the system has not been loaded before More... | |
bool | systemInMemory (std::string name) |
void | popSystem () |
this function restores the active system.... there must be an equal number of pushSystems ans popSystems or else Vega Strike may behave unpredictably More... | |
std::string | getSystemFile () |
This function gets the current system's official name. More... | |
std::string | getSystemName () |
this function gets the current system's nickname (not useful) More... | |
PythonUnitIter | getUnitList () |
this function gets an iterator into the units in the current system... do NOT keep an iterator across a frame–it may get deleted! More... | |
Unit * | getUnit (int index) |
This function gets a unit given a number (how many iterations to go down in the iterator) More... | |
Unit * | getUnitByName (std::string name) |
This function gets a unit given a name. More... | |
Unit * | getUnitByPtr (void *ptr, Unit *finder=0, bool allowslowness=true) |
This function gets a unit given an unreferenceable pointer to it - much faster if finder is provided. More... | |
Unit * | getScratchUnit () |
void | setScratchUnit (Unit *) |
void | precacheUnit (std::string name, std::string faction) |
QVector | getScratchVector () |
void | setScratchVector (QVector) |
int | getNumUnits () |
void | cacheAnimation (std::string anim) |
Unit * | launchJumppoint (std::string name_string, std::string faction_string, std::string type_string, std::string unittype_string, std::string ai_string, int nr_of_ships, int nr_of_waves, QVector pos, std::string squadlogo, std::string destinations) |
this function launches a wormhole or a jump point. More... | |
std::string | vsConfig (std::string category, std::string option, std::string def) |
Unit * | launch (std::string name_string, std::string type_string, std::string faction_string, std::string unittype, std::string ai_string, int nr_of_ships, int nr_of_waves, QVector pos, std::string sqadlogo) |
this function launches a normal fighter the name is the flightgroup name, the type is the ship type, the faction is who it belongs to, the unittype is usually "unit" unless you want to make asteroids or nebulae or jump points or planets. the aistring is either a python filename or "default" the nr of ships is the number of ships to be launched with this group, the number of waves is num reinforcements... the position is a tuple (x,y,z) where they appear and the squadlogo is a squadron image...you can leave this the empty string '' for the default squadron logo. More... | |
Cargo | getRandCargo (int quantity, std::string category) |
this gets a random cargo type (useful for cargo missions) from either any category if category is '' or else from a specific category 'Contraband' comes to mind! More... | |
std::string | GetAdjacentSystem (std::string str, int which) |
this gets a string which has in it a space delimited list of neighmoring systems More... | |
std::string | GetGalaxyProperty (std::string sys, std::string prop) |
this gets a specific property of this system as found in universe/milky_way.xml More... | |
std::vector< std::string > | GetJumpPath (std::string from, std::string to) |
get the shortest path between systems as found in universe/milky_way.xml More... | |
std::string | GetGalaxyPropertyDefault (std::string sys, std::string prop, std::string def) |
this gets a specific property of this system as found in universe/milky_way.xml and returns a default value if not found More... | |
std::string | GetGalaxyFaction (std::string sys) |
void | SetGalaxyFaction (std::string sys, std::string fac) |
int | GetNumAdjacentSystems (std::string sysname) |
this gets the number of systems adjacent to the sysname More... | |
float | GetGameTime () |
this gets the current game time since last start in seconds More... | |
float | getStarTime () |
this gets the current absolute startime in seconds More... | |
string | getStarDate () |
this gets the current stardate string More... | |
void | SetTimeCompression () |
this sets the time compresison value to zero More... | |
int | musicAddList (std::string str) |
this adds a playlist to the music and may be triggered with an int More... | |
void | musicLayerPlaySong (std::string str, int layer) |
this plays a specific song, at a specific layer More... | |
void | musicPlaySong (std::string str) |
this plays a specific song, through the crossfader construct More... | |
void | musicPlayList (int which) |
this plays msuci from a given list (where the int is what was returned by musicAddList) More... | |
void | musicLoopList (int numloops) |
this plays msuci from a given list (where the int is what was returned by musicAddList) More... | |
void | musicSkip () |
this skips the current music track (and goes to the next in the currently playing list) More... | |
void | musicStop () |
this stops the music currently playing - with a nice fadeout More... | |
float | GetDifficulty () |
this gets the difficutly of the game... ranges between 0 and 1... many missions depend on it never going past .99 unless it's always at one. More... | |
void | SetDifficulty (float diff) |
this sets the difficulty More... | |
void | playSound (std::string soundName, QVector loc, Vector speed) |
this plays a sound at a location...if the sound has dual channels it will play in the center More... | |
void | playSoundCockpit (std::string soundName) |
this plays a sound at full volume in the cockpit More... | |
void | playAnimation (std::string aniName, QVector loc, float size) |
this plays an image (explosion or warp animation) at a location More... | |
void | playAnimationGrow (std::string aniName, QVector loc, float size, float growpercent) |
void | TargetEachOther (std::string fgname, std::string faction, std::string enfgname, std::string enfaction) |
tells the respective flightgroups in this system to start shooting at each other More... | |
void | StopTargettingEachOther (std::string fgname, std::string faction, std::string enfgname, std::string enfaction) |
tells the respective flightgroups in this system to stop killing each other urgently...they may still attack–just not warping and stuff More... | |
void | terminateMission (bool term) |
this ends the mission with either success or failure More... | |
Unit * | getPlayer () |
this gets the player belonging to this mission More... | |
Unit * | getPlayerX (int which) |
this gets a player number (if in splitscreen mode) More... | |
int | getNumPlayers () |
this gets the number of active players More... | |
void | setTargetLabel (std::string label) |
std::string | getTargetLabel () |
float | getRelationModifierInt (int which_cp, int faction) |
float | getRelationModifier (int which_cp, string faction) |
float | getFGRelationModifier (int which_cp, string fg) |
void | adjustRelationModifierInt (int which_cp, int faction, float delta) |
void | adjustRelationModifier (int which_cp, string faction, float delta) |
void | adjustFGRelationModifier (int which_cp, string fg, float delta) |
void | AdjustRelation (std::string myfaction, std::string theirfaction, float factor, float rank) |
float | GetRelation (std::string myfaction, std::string theirfaction) |
void | clearObjectives () |
void | eraseObjective (int which) |
int | addObjective (std::string objective) |
this adds an objective for the cockpit to view ("go here and do this) More... | |
void | setObjective (int which, std::string newobjective) |
this sets the objective's completeness (the int was returned by add objective) More... | |
void | setCompleteness (int which, float completeNess) |
this sets the completeness of a particular objective... chanigng the color onscreen More... | |
float | getCompleteness (int which) |
this gets that completeness More... | |
void | setOwnerII (int which, Unit *owner) |
this sets the owner of a completeness More... | |
Unit * | getOwner (int which) |
this gets an owner of a completeness (NULL means all players can see this objective) More... | |
int | getMissionOwner () |
void | setMissionOwner (int) |
int | numActiveMissions () |
returns number missions running to tweak difficulty More... | |
void | IOmessage (int delay, std::string from, std::string to, std::string message) |
this sends an IO message... I'm not sure if delay currently works, but from, to and message do :-) ... if you want to send to the bar do "bar" as the to string... if you want to make news for the news room specify "news" More... | |
Unit * | GetContrabandList (std::string faction) |
this gets a unit with a faction's contraband list... may be null (check with isNull) More... | |
void | SetAutoStatus (int global_auto, int player_auto) |
this sets whether or not a player may autopilot. Normally they are both 0 and the autopiloting is allowed based on if enemies are near... if you pass in 1 then autopilot will be allowed no matter who is near... if you set -1 then autopilot is never allowed. global affects all players... player just affects the player who accepted the mission. More... | |
void | LoadMission (std::string missionname) |
void | LoadMissionScript (std::string scriptcontents) |
void | LoadNamedMissionScript (std::string missiontitle, std::string scriptcontents) |
QVector | SafeEntrancePoint (QVector, float radial_size=-1) |
QVector | SafeStarSystemEntrancePoint (StarSystem *sts, QVector, float radial_size=-1) |
float | getPlanetRadiusPercent () |
bool | networked () |
bool | isserver () |
void | receivedCustom (int cp, bool trusted, string cmd, string args, string id) |
std::string | getVariable (std::string section, std::string name, std::string def) |
std::string | getSubVariable (std::string section, std::string subsection, std::string name, std::string def) |
double | timeofday () |
double | sqrt (double) |
double | log (double) |
double | exp (double) |
double | cos (double) |
double | sin (double) |
double | acos (double) |
double | asin (double) |
double | atan (double) |
double | tan (double) |
void | micro_sleep (int n) |
void | ComputeGalaxySerials (std::vector< std::string > &stak) |
void | ComputeSystemSerials (std::string &systempath) |
std::string | getSaveDir () |
std::string | getSaveInfo (const std::string &filename, bool formatForTextbox) |
std::string | getCurrentSaveGame () |
std::string | setCurrentSaveGame (const std::string &newsave) |
std::string | getNewGameSaveName () |
void | loadGame (const std::string &savename) |
void | saveGame (const std::string &savename) |
void | showSplashScreen (const std::string &filename) |
void | showSplashMessage (const std::string &text) |
Unit * | launchJumppoint (string name_string, string faction_string, string type_string, string unittype_string, string ai_string, int nr_of_ships, int nr_of_waves, QVector pos, string squadlogo, string destinations) |
Cargo | getRandCargo (int quantity, string category) |
void | pushSystem (string name) |
void | TargetEachOther (string fgname, string faction, string enfgname, string enfaction) |
tells the respective flightgroups in this system to start shooting at each other More... | |
void | StopTargettingEachOther (string fgname, string faction, string enfgname, string enfaction) |
tells the respective flightgroups in this system to stop killing each other urgently...they may still attack–just not warping and stuff More... | |
bool | systemInMemory (string nam) |
string | GetAdjacentSystem (string str, int which) |
string | GetGalaxyProperty (string sys, string prop) |
string | GetGalaxyPropertyDefault (string sys, string prop, string def) |
string | GetGalaxyFaction (string sys) |
void | SetGalaxyFaction (string sys, string fac) |
int | GetNumAdjacentSystems (string sysname) |
static string | dontBlankOut (string objective) |
int | addObjective (string objective) |
void | setObjective (int which, string newobjective) |
void | IOmessage (int delay, string from, string to, string message) |
Unit * | GetContrabandList (string faction) |
void | LoadMission (string missionname) |
void | LoadNamedMissionScript (string title, string missionscript) |
void | LoadMissionScript (string missionscript) |
Unit * | launch (string name_string, string type_string, string faction_string, string unittype, string ai_string, int nr_of_ships, int nr_of_waves, QVector pos, string sqadlogo) |
string | LookupUnitStat (const string &unitname, const string &faction, const string &statname) |
void | precacheUnit (string type_string, string faction_string) |
void | securepythonstr (string &message) |
static std::string | simplePrettySystem (std::string system) |
static std::string | simplePrettyShip (std::string ship) |
string | setCurrentSaveGame (const string &newsave) |
vector< string > | GetJumpPath (string from, string to) |
Variables | |
static UnitContainer | scratch_unit |
static QVector | scratch_vector |
static std::vector< Unit * > | cachedUnits |
double UniverseUtil::acos | ( | double | x) |
Definition at line 836 of file universe_util_generic.cpp.
Referenced by Audio::SourceTemplate::getAngleRange(), Audio::Listener::getAngleRange(), Audio::Source::getAngleRange(), linear_interpolate_uncapped(), safeacos(), showUnitStats(), Atmosphere::Update(), and Unit::WriteUnitString().
int UniverseUtil::addObjective | ( | std::string | objective) |
this adds an objective for the cockpit to view ("go here and do this)
int UniverseUtil::addObjective | ( | string | objective) |
Definition at line 550 of file universe_util_generic.cpp.
References dontBlankOut(), mission, Subcmd::Objective, Mission::objectives, Mission::player_num, NetServer::sendSaveData(), SERVER, Subcmd::SetValue, and VSServer.
Definition at line 135 of file universe_util.cpp.
References ParticleTrail::AddParticle(), ParticlePoint::col, ParticlePoint::loc, and particleTrail.
Definition at line 405 of file universe_util_generic.cpp.
References getSaveData(), getSaveDataLength(), pushSaveData(), and putSaveData().
Referenced by CommunicatingAI::AdjustRelationTo(), and Pilot::DoHit().
void UniverseUtil::AdjustRelation | ( | std::string | myfaction, |
std::string | theirfaction, | ||
float | factor, | ||
float | rank | ||
) |
Definition at line 355 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), adjustRelationModifierInt(), Universe::CurrentCockpit(), Unit::faction, FactionUtil::GetFactionIndex(), and Cockpit::GetParent().
Definition at line 401 of file universe_util_generic.cpp.
References adjustRelationModifierInt(), and FactionUtil::GetFactionIndex().
Referenced by Arrested().
Definition at line 391 of file universe_util_generic.cpp.
References FactionUtil::GetFactionName(), getSaveData(), getSaveDataLength(), pushSaveData(), and putSaveData().
Referenced by AdjustRelation(), adjustRelationModifier(), CommunicatingAI::AdjustRelationTo(), AllUnitsCloseAndEngage(), Arrested(), Pilot::DoHit(), and ScoreKill().
double UniverseUtil::asin | ( | double | x) |
Definition at line 840 of file universe_util_generic.cpp.
Referenced by Unit::AutoPilotToErrorMessage(), SphericalTransform::InvTransform(), MinRotationFromDirections(), and Unit::UnDock().
double UniverseUtil::atan | ( | double | x) |
Definition at line 844 of file universe_util_generic.cpp.
Referenced by Unit::DealDamageToShield(), StarSystemGent::Vector::Pitch(), StarSystemGent::Vector::Roll(), GameCockpit::SetupViewPort(), and StarSystemGent::Vector::Yaw().
void UniverseUtil::cacheAnimation | ( | std::string | anim) |
void UniverseUtil::cacheAnimation | ( | string | aniName) |
Definition at line 114 of file universe_util.cpp.
References anis.
Referenced by Unit::AutoPilotToErrorMessage(), and Unit::ResolveForces().
void UniverseUtil::clearObjectives | ( | ) |
Definition at line 601 of file universe_util_generic.cpp.
References Subcmd::EraseValue, mission, Subcmd::Objective, Mission::objectives, Mission::player_num, NetServer::sendSaveData(), SERVER, and VSServer.
void UniverseUtil::ComputeGalaxySerials | ( | std::vector< std::string > & | stak) |
void UniverseUtil::ComputeSystemSerials | ( | std::string & | systempath) |
Definition at line 857 of file universe_util_generic.cpp.
References NetServer::addSystem(), f, getUniqueSerial(), VSFileSystem::Ok, SERVER, VSFileSystem::SystemFile, XMLSupport::tostring5(), VSExit(), and VSServer.
Referenced by ComputeGalaxySerials(), and Universe::Generate1().
double UniverseUtil::cos | ( | double | x) |
Definition at line 828 of file universe_util_generic.cpp.
Referenced by aim_assist(), Beam::Collide(), Audio::Test::EngParticleListener::computePosition(), Audio::Test::EngParticleListener::computeVelocity(), Unit::cosAngleTo(), csXRotMatrix3::csXRotMatrix3(), csYRotMatrix3::csYRotMatrix3(), csZRotMatrix3::csZRotMatrix3(), GameCockpit::Draw(), NavigationSystem::DrawCircle(), NavigationSystem::DrawHalfCircleBottom(), NavigationSystem::DrawHalfCircleTop(), VSSprite::DrawHere(), NavigationSystem::DrawJump(), NavigationSystem::DrawNavCircle(), DrawOneTargetBox(), NavigationSystem::DrawPlanet(), NavigationSystem::dxyz(), PlanetaryOrbit::Execute(), Orders::AutoLongHaul::Execute(), EvadeLeftRightC::Execute(), Quaternion::from_axis_angle(), GetSubUnits(), GFXCircle(), GFXSphereVertexList::GFXSphereVertexList(), SphereMesh::InitSphere(), Unit::LoadRow(), MinRotationFromDirections(), Mix_SoftVolume_Change(), NavigationSystem::SystemIterator::Position(), Unit::reactToCollision(), PhysicsSystem::Rotate(), Rotate(), Unit::Rotate(), Audio::SourceTemplate::setAngleRange(), Audio::Listener::setAngleRange(), Audio::Source::setAngleRange(), GameCockpit::SetupViewPort(), Orders::FireAt::ShouldFire(), Audio::Test::testComplexScene(), and SphericalTransform::Transform().
|
static |
Definition at line 540 of file universe_util_generic.cpp.
Referenced by addObjective(), and setObjective().
void UniverseUtil::eraseObjective | ( | int | which) |
Definition at line 592 of file universe_util_generic.cpp.
References Subcmd::EraseValue, mission, Subcmd::Objective, Mission::objectives, Mission::player_num, NetServer::sendSaveData(), SERVER, and VSServer.
double UniverseUtil::exp | ( | double | x) |
Definition at line 824 of file universe_util_generic.cpp.
Referenced by FlyByJoystick::Execute(), Unit::GetVelocityDifficultyMult(), log2linear(), and NetClient::synchronizeTime().
std::string UniverseUtil::GetAdjacentSystem | ( | std::string | str, |
int | which | ||
) |
this gets a string which has in it a space delimited list of neighmoring systems
Referenced by NavigationSystem::CachedSystemIterator::init(), NavigationSystem::SystemIterator::operator++(), and Cockpit::visitSystem().
string UniverseUtil::GetAdjacentSystem | ( | string | str, |
int | which | ||
) |
Definition at line 489 of file universe_util_generic.cpp.
References _Universe, and Universe::getAdjacentStarSystems().
this gets that completeness
Definition at line 577 of file universe_util_generic.cpp.
References mission, and Mission::objectives.
Unit* UniverseUtil::GetContrabandList | ( | std::string | faction) |
this gets a unit with a faction's contraband list... may be null (check with isNull)
Unit* UniverseUtil::GetContrabandList | ( | string | faction) |
Definition at line 639 of file universe_util_generic.cpp.
References FactionUtil::GetContraband(), and FactionUtil::GetFactionIndex().
unsigned int UniverseUtil::getCurrentPlayer | ( | ) |
Definition at line 127 of file universe_util.cpp.
References _Universe, and Universe::CurrentCockpit().
Referenced by drawlistitem(), NavigationSystem::DrawMission(), NavigationSystem::DrawSystem(), and BaseComputer::showPlayerInfo().
string UniverseUtil::getCurrentSaveGame | ( | ) |
Definition at line 1035 of file universe_util_generic.cpp.
References GetCurrentSaveGame().
float UniverseUtil::GetDifficulty | ( | ) |
this gets the difficutly of the game... ranges between 0 and 1... many missions depend on it never going past .99 unless it's always at one.
Definition at line 525 of file universe_util_generic.cpp.
References game_data_t::difficulty, and g_game.
Definition at line 384 of file universe_util_generic.cpp.
References getSaveData(), and getSaveDataLength().
Referenced by Pilot::getAnger().
std::string UniverseUtil::GetGalaxyFaction | ( | std::string | sys) |
string UniverseUtil::GetGalaxyFaction | ( | string | sys) |
Definition at line 503 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), DEFAULT_FACTION_SAVENAME, Universe::getGalaxyProperty(), SaveGame::getMissionStringData(), and Cockpit::savegame.
std::string UniverseUtil::GetGalaxyProperty | ( | std::string | sys, |
std::string | prop | ||
) |
this gets a specific property of this system as found in universe/milky_way.xml
string UniverseUtil::GetGalaxyProperty | ( | string | sys, |
string | prop | ||
) |
Definition at line 493 of file universe_util_generic.cpp.
References _Universe, and Universe::getGalaxyProperty().
std::string UniverseUtil::GetGalaxyPropertyDefault | ( | std::string | sys, |
std::string | prop, | ||
std::string | def | ||
) |
this gets a specific property of this system as found in universe/milky_way.xml and returns a default value if not found
string UniverseUtil::GetGalaxyPropertyDefault | ( | string | sys, |
string | prop, | ||
string | def | ||
) |
Definition at line 497 of file universe_util_generic.cpp.
References _Universe, and Universe::getGalaxyPropertyDefault().
float UniverseUtil::GetGameTime | ( | ) |
this gets the current game time since last start in seconds
Definition at line 220 of file universe_util_generic.cpp.
References Mission::gametime, and mission.
Referenced by GameCockpit::Autopilot(), Orders::FireAt::ChooseTargets(), VDU::Draw(), Orders::FireAt::FireWeapons(), Audio::getGameTime(), UnitUtil::getPhysicsPriority(), GameCockpit::LookupUnitStat(), Orders::AggressiveAI::ProcessLogicItem(), Orders::FireAt::ReInit(), Unit::Repair(), Orders::AggressiveAI::SetParent(), and Orders::FireAt::ShouldFire().
std::vector< std::string > UniverseUtil::GetJumpPath | ( | std::string | from, |
std::string | to | ||
) |
get the shortest path between systems as found in universe/milky_way.xml
vector< string > UniverseUtil::GetJumpPath | ( | string | from, |
string | to | ||
) |
Definition at line 1051 of file universe_util_generic.cpp.
References _Universe, and Universe::getJumpPath().
Unit * UniverseUtil::GetMasterPartList | ( | ) |
this gets a unit with 1 of each cargo type in it
Definition at line 242 of file universe_util_generic.cpp.
References UnitFactory::getMasterPartList().
Referenced by buyShip(), Enslave(), Unit::ForceDock(), and sellShip().
int UniverseUtil::getMissionOwner | ( | ) |
Definition at line 419 of file universe_util_generic.cpp.
References mission, and Mission::player_num.
string UniverseUtil::getNewGameSaveName | ( | ) |
Definition at line 1045 of file universe_util_generic.cpp.
Referenced by BaseComputer::actionNewGame().
int UniverseUtil::GetNumAdjacentSystems | ( | std::string | sysname) |
this gets the number of systems adjacent to the sysname
Referenced by NavigationSystem::CachedSystemIterator::init(), NavigationSystem::SystemIterator::operator++(), and Cockpit::visitSystem().
int UniverseUtil::GetNumAdjacentSystems | ( | string | sysname) |
Definition at line 521 of file universe_util_generic.cpp.
References _Universe, and Universe::getAdjacentStarSystems().
int UniverseUtil::getNumPlayers | ( | ) |
this gets the number of active players
Definition at line 790 of file universe_util_generic.cpp.
References _Universe, and Universe::numPlayers().
Referenced by getPlayerX().
int UniverseUtil::getNumUnits | ( | ) |
Definition at line 464 of file universe_util_generic.cpp.
References activeSys, UnitCollection::UnitIterator::advance(), and UnitCollection::UnitIterator::current().
this gets an owner of a completeness (NULL means all players can see this objective)
Definition at line 615 of file universe_util_generic.cpp.
References mission, and Mission::objectives.
float UniverseUtil::getPlanetRadiusPercent | ( | ) |
Definition at line 800 of file universe_util_generic.cpp.
References vs_options::auto_pilot_planet_radius_percent.
Referenced by Unit::AutoPilotToErrorMessage(), CalculateNearestWarpUnit(), Orders::AggressiveAI::ExecuteNoEnemies(), and UnitUtil::getSignificantDistance().
Unit * UniverseUtil::getPlayer | ( | ) |
this gets the player belonging to this mission
Definition at line 752 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), and Cockpit::GetParent().
Referenced by BaseUtil::LoadBaseInterface(), newGetPlayer(), and ShipCommands::setkps().
this gets a player number (if in splitscreen mode)
Definition at line 794 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), getNumPlayers(), and Cockpit::GetParent().
Referenced by drawlistitem(), NavigationSystem::DrawMission(), NavigationSystem::DrawSystem(), and BaseComputer::showPlayerInfo().
this gets a random cargo type (useful for cargo missions) from either any category if category is '' or else from a specific category 'Contraband' comes to mind!
Definition at line 191 of file universe_util_generic.cpp.
References Unit::GetCargo(), Cargo::GetContent(), Unit::GetSortedCargoCat(), GetUnitMasterPartList(), i, max(), Unit::numCargo(), and Cargo::quantity.
float UniverseUtil::GetRelation | ( | std::string | myfaction, |
std::string | theirfaction | ||
) |
Definition at line 339 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), Universe::CurrentCockpit(), Unit::faction, FactionUtil::GetFactionIndex(), FactionUtil::GetIntRelation(), Cockpit::GetParent(), and getRelationModifierInt().
Definition at line 380 of file universe_util_generic.cpp.
References FactionUtil::GetFactionIndex(), and getRelationModifierInt().
Definition at line 371 of file universe_util_generic.cpp.
References FactionUtil::GetFactionName(), getSaveData(), and getSaveDataLength().
Referenced by UnitUtil::getFactionRelation(), GetRelation(), UnitUtil::getRelationFromFaction(), getRelationModifier(), UnitUtil::getRelationToFaction(), and ScoreKill().
string UniverseUtil::getSaveDir | ( | ) |
Definition at line 943 of file universe_util_generic.cpp.
References GetSaveDir().
Referenced by getSaveInfo().
string UniverseUtil::getSaveInfo | ( | const std::string & | filename, |
bool | formatForTextbox | ||
) |
Definition at line 968 of file universe_util_generic.cpp.
References _Universe, vs_options::campaigns, Universe::CurrentCockpit(), SaveGame::getMissionData(), SaveGame::getMissionStringData(), getSaveDir(), VegaConfig::getVariable(), i, SaveGame::ParseSaveGame(), vs_options::quick_savegame_summaries, QVector, setCurrentSaveGame(), SaveGame::SetStarSystem(), simplePrettyShip(), simplePrettySystem(), XMLSupport::tostring(), and vs_config.
Referenced by GarnerInfoFromSaveGame().
Unit * UniverseUtil::getScratchUnit | ( | ) |
Definition at line 246 of file universe_util_generic.cpp.
References UnitContainer::GetUnit(), and scratch_unit.
Referenced by ChooseNavPoint().
QVector UniverseUtil::getScratchVector | ( | ) |
Definition at line 255 of file universe_util_generic.cpp.
References scratch_vector.
string UniverseUtil::getStarDate | ( | ) |
this gets the current stardate string
Definition at line 230 of file universe_util_generic.cpp.
References _Universe, Universe::current_stardate, and StarDate::GetFullTrekDate().
float UniverseUtil::getStarTime | ( | ) |
this gets the current absolute startime in seconds
Definition at line 225 of file universe_util_generic.cpp.
References _Universe, Universe::current_stardate, and StarDate::GetCurrentStarTime().
std::string UniverseUtil::getSubVariable | ( | std::string | section, |
std::string | subsection, | ||
std::string | name, | ||
std::string | def | ||
) |
Definition at line 808 of file universe_util_generic.cpp.
References VegaConfig::getVariable(), and vs_config.
string UniverseUtil::getSystemFile | ( | ) |
This function gets the current system's official name.
Definition at line 273 of file universe_util_generic.cpp.
References activeSys.
Referenced by Arrested(), BaseComputer::getColorForGroup(), and NavigationSystem::Setup().
string UniverseUtil::getSystemName | ( | ) |
this function gets the current system's nickname (not useful)
Definition at line 279 of file universe_util_generic.cpp.
References activeSys.
Referenced by buildCargoDescription().
std::string UniverseUtil::getTargetLabel | ( | ) |
Definition at line 588 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), and Cockpit::getTargetLabel().
This function gets a unit given a number (how many iterations to go down in the iterator)
Definition at line 427 of file universe_util_generic.cpp.
References activeSys, Unit::GetHull(), and i.
Referenced by getNetworkUnit().
Unit * UniverseUtil::getUnitByName | ( | std::string | name) |
This function gets a unit given a name.
Definition at line 457 of file universe_util_generic.cpp.
References activeSys, UnitUtil::getName(), and UnitCollection::UnitIterator::notDone().
This function gets a unit given an unreferenceable pointer to it - much faster if finder is provided.
Definition at line 439 of file universe_util_generic.cpp.
References activeSys, findObjects(), Unit::isSubUnit(), Unit::location, UnitCollection::UnitIterator::notDone(), UnitPtrLocator::retval, and Unit::UNIT_ONLY.
Referenced by ChooseTargetClass< numTuple >::init().
Definition at line 133 of file universe_util_generic.cpp.
References getUnitList().
Referenced by UnitFactory::parsePlanetBuffer().
UniverseUtil::PythonUnitIter UniverseUtil::getUnitList | ( | ) |
this function gets an iterator into the units in the current system... do NOT keep an iterator across a frame–it may get deleted!
Definition at line 423 of file universe_util_generic.cpp.
References activeSys.
Referenced by NavigationSystem::DrawSystem(), GetUnitFromSerial(), and UnitUtil::owner().
std::string UniverseUtil::getVariable | ( | std::string | section, |
std::string | name, | ||
std::string | def | ||
) |
Definition at line 804 of file universe_util_generic.cpp.
References VegaConfig::getVariable(), and vs_config.
Referenced by Unit::ResolveForces().
void UniverseUtil::hideSplashScreen | ( | ) |
Definition at line 195 of file universe_util.cpp.
References SetStarSystemLoading().
Referenced by bootstrap_main_loop(), NetActionConfirm::confirmedJoinGame(), NetClient::Reconnect(), NetClient::Respawn(), ss_generating(), and Cockpit::Update().
void UniverseUtil::IOmessage | ( | int | delay, |
std::string | from, | ||
std::string | to, | ||
std::string | message | ||
) |
this sends an IO message... I'm not sure if delay currently works, but from, to and message do :-) ... if you want to send to the bar do "bar" as the to string... if you want to make news for the news room specify "news"
Referenced by Arrested(), bootstrap_main_loop(), GameCockpit::DoAutoLanding(), NetworkCommunication::RecvMessage(), and Unit::RegenShields().
void UniverseUtil::IOmessage | ( | int | delay, |
string | from, | ||
string | to, | ||
string | message | ||
) |
Definition at line 631 of file universe_util_generic.cpp.
References _Universe, MessageCenter::add(), i, mission, Mission::msgcenter, vs_options::news_from_cargolist, Universe::numPlayers(), and pushSaveString().
bool UniverseUtil::isserver | ( | ) |
Definition at line 760 of file universe_util_generic.cpp.
References SERVER.
bool UniverseUtil::isSplashScreenShowing | ( | ) |
Definition at line 200 of file universe_util.cpp.
References GetStarSystemLoading().
Referenced by NetActionConfirm::finalizeJoinGame(), ss_generating(), and GameUniverse::StartDraw().
Unit * UniverseUtil::launch | ( | std::string | name_string, |
std::string | type_string, | ||
std::string | faction_string, | ||
std::string | unittype, | ||
std::string | ai_string, | ||
int | nr_of_ships, | ||
int | nr_of_waves, | ||
QVector | pos, | ||
std::string | sqadlogo | ||
) |
this function launches a normal fighter the name is the flightgroup name, the type is the ship type, the faction is who it belongs to, the unittype is usually "unit" unless you want to make asteroids or nebulae or jump points or planets. the aistring is either a python filename or "default" the nr of ships is the number of ships to be launched with this group, the number of waves is num reinforcements... the position is a tuple (x,y,z) where they appear and the squadlogo is a squadron image...you can leave this the empty string '' for the default squadron logo.
Unit* UniverseUtil::launch | ( | string | name_string, |
string | type_string, | ||
string | faction_string, | ||
string | unittype, | ||
string | ai_string, | ||
int | nr_of_ships, | ||
int | nr_of_waves, | ||
QVector | pos, | ||
string | sqadlogo | ||
) |
Definition at line 714 of file universe_util_generic.cpp.
References launchJumppoint(), and Network.
Unit * UniverseUtil::launchJumppoint | ( | std::string | name_string, |
std::string | faction_string, | ||
std::string | type_string, | ||
std::string | unittype_string, | ||
std::string | ai_string, | ||
int | nr_of_ships, | ||
int | nr_of_waves, | ||
QVector | pos, | ||
std::string | squadlogo, | ||
std::string | destinations | ||
) |
this function launches a wormhole or a jump point.
this function launches a wormhole or ajump point.
Referenced by launch().
Unit* UniverseUtil::launchJumppoint | ( | string | name_string, |
string | faction_string, | ||
string | type_string, | ||
string | unittype_string, | ||
string | ai_string, | ||
int | nr_of_ships, | ||
int | nr_of_waves, | ||
QVector | pos, | ||
string | squadlogo, | ||
string | destinations | ||
) |
Definition at line 151 of file universe_util_generic.cpp.
References ASTEROIDPTR, Mission::call_unit_launch(), CreateFlightgroup::fg, mission, NEBULAPTR, Network, Flightgroup::newFlightgroup(), CreateFlightgroup::nr_ships, Mission::number_of_ships, PLANETPTR, Flightgroup::pos, CreateFlightgroup::rot, CreateFlightgroup::terrain_nr, CreateFlightgroup::UNIT, UNITPTR, CreateFlightgroup::unittype, and CreateFlightgroup::waves.
void UniverseUtil::loadGame | ( | const string & | savename) |
Definition at line 143 of file universe_util.cpp.
References _Universe, Universe::AccessCockpit(), Universe::CurrentCockpit(), NetClient::dieRequest(), Cockpit::GetParent(), globalWindowManager(), Unit::Kill(), Network, RespawnNow(), setCurrentSaveGame(), WindowManager::shutDown(), and TerminateCurrentBase().
void UniverseUtil::loadGame | ( | const std::string & | savename) |
void UniverseUtil::LoadMission | ( | std::string | missionname) |
void UniverseUtil::LoadMission | ( | string | missionname) |
Definition at line 643 of file universe_util_generic.cpp.
References LoadMission().
void UniverseUtil::LoadMissionScript | ( | std::string | scriptcontents) |
void UniverseUtil::LoadMissionScript | ( | string | missionscript) |
Definition at line 653 of file universe_util_generic.cpp.
References LoadMission().
void UniverseUtil::LoadNamedMissionScript | ( | std::string | missiontitle, |
std::string | scriptcontents | ||
) |
void UniverseUtil::LoadNamedMissionScript | ( | string | title, |
string | missionscript | ||
) |
Definition at line 648 of file universe_util_generic.cpp.
References LoadMission().
double UniverseUtil::log | ( | double | x) |
Definition at line 820 of file universe_util_generic.cpp.
Referenced by computeStarColor(), and linear2log().
std::string UniverseUtil::LookupUnitStat | ( | const std::string & | unitname, |
const std::string & | faction, | ||
const std::string & | statname | ||
) |
string UniverseUtil::LookupUnitStat | ( | const string & | unitname, |
const string & | faction, | ||
const string & | statname | ||
) |
Definition at line 737 of file universe_util_generic.cpp.
References LookupUnitRow(), and CSVRow::success().
unsigned int UniverseUtil::maxMissions | ( | ) |
Definition at line 131 of file universe_util.cpp.
References vs_options::max_missions.
Referenced by BaseComputer::isTransactionOK().
void UniverseUtil::micro_sleep | ( | int | n) |
Definition at line 852 of file universe_util_generic.cpp.
References micro_sleep.
int UniverseUtil::musicAddList | ( | string | str) |
Definition at line 52 of file universe_util.cpp.
References Music::Addlist(), and muzak.
int UniverseUtil::musicAddList | ( | std::string | str) |
this adds a playlist to the music and may be triggered with an int
this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList)
Definition at line 73 of file universe_util.cpp.
References muzak, and Music::SetLoops().
Referenced by musicLoopList().
this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList)
Definition at line 68 of file universe_util.cpp.
References muzak, and Music::SkipRandSong().
Referenced by musicPlayList().
void UniverseUtil::musicLayerPlaySong | ( | string | str, |
int | layer | ||
) |
Definition at line 64 of file universe_util.cpp.
References Music::GotoSong(), and muzak.
Referenced by musicPlaySong().
void UniverseUtil::musicLayerPlaySong | ( | std::string | str, |
int | layer | ||
) |
this plays a specific song, at a specific layer
sets the hardware volume, does not support transitions of any kind.
Definition at line 81 of file universe_util.cpp.
References Music::SetVolume().
Referenced by musicSetHardVolume().
sets the software volume, with smooth transitions (latency_override==-1 uses default transition time)
Definition at line 77 of file universe_util.cpp.
References Music::SetVolume().
Referenced by musicSetSoftVolume().
void UniverseUtil::musicLayerSkip | ( | int | layer) |
this skips the current music track, at a specific layer (and goes to the next in the currently playing list)
Definition at line 56 of file universe_util.cpp.
References muzak, and Music::Skip().
Referenced by musicSkip().
void UniverseUtil::musicLayerStop | ( | int | layer) |
this stops the music currently playing at a specific layer - with a nice fadeout
Definition at line 60 of file universe_util.cpp.
References muzak, and Music::Stop().
Referenced by musicStop().
|
inline |
this plays msuci from a given list (where the int is what was returned by musicAddList)
Definition at line 207 of file universe_util.h.
References musicLayerLoopList().
void UniverseUtil::musicMute | ( | bool | stopSound) |
this mutes sound - or unmutes it
Definition at line 93 of file universe_util.cpp.
References Music::Mute(), and muzak.
Referenced by Unit::UpdatePhysics().
|
inline |
this plays msuci from a given list (where the int is what was returned by musicAddList)
Definition at line 201 of file universe_util.h.
References musicLayerPlayList().
|
inline |
this plays a specific song, through the crossfader construct
this plays a specific song
Definition at line 195 of file universe_util.h.
References musicLayerPlaySong().
void UniverseUtil::musicSetHardVolume | ( | float | vol) |
sets the hardware volume, does not support transitions of any kind.
Definition at line 89 of file universe_util.cpp.
References musicLayerSetHardVolume().
sets the software volume, with smooth transitions (latency_override==-1 uses default transition time)
Definition at line 85 of file universe_util.cpp.
References musicLayerSetSoftVolume().
|
inline |
this skips the current music track (and goes to the next in the currently playing list)
Definition at line 213 of file universe_util.h.
References musicLayerSkip().
|
inline |
this stops the music currently playing - with a nice fadeout
Definition at line 219 of file universe_util.h.
References musicLayerStop().
bool UniverseUtil::networked | ( | ) |
Definition at line 756 of file universe_util_generic.cpp.
References Network.
Referenced by Unit::SetNetworkMode(), and GameUnit< UnitType >::UpdatePhysics2().
UnitWrapper UniverseUtil::newGetPlayer | ( | ) |
Definition at line 38 of file unit_wrapper.cpp.
References getPlayer().
int UniverseUtil::numActiveMissions | ( | ) |
returns number missions running to tweak difficulty
Definition at line 622 of file universe_util_generic.cpp.
References _Universe, active_missions, Universe::CurrentCockpit(), i, and num_delayed_missions().
Definition at line 119 of file universe_util.cpp.
References AddAnimation().
Referenced by DoEnterExitAni().
this plays an image (explosion or warp animation) at a location
Definition at line 123 of file universe_util.cpp.
References AddAnimation().
Referenced by Unit::AutoPilotToErrorMessage(), and Unit::ResolveForces().
void UniverseUtil::playAnimationGrow | ( | std::string | aniName, |
QVector | loc, | ||
float | size, | ||
float | growpercent | ||
) |
Definition at line 97 of file universe_util.cpp.
References AUDAdjustSound(), AUDCreateSoundWAV(), AUDDeleteSound(), and AUDStartPlaying().
Referenced by buyShip(), and BaseComputer::updateTransactionControlsForSelection().
this plays a sound at a location...if the sound has dual channels it will play in the center
void UniverseUtil::playSoundCockpit | ( | string | soundName) |
Definition at line 104 of file universe_util.cpp.
References AUDCreateSoundWAV(), AUDDeleteSound(), and AUDStartPlaying().
void UniverseUtil::playSoundCockpit | ( | std::string | soundName) |
this plays a sound at full volume in the cockpit
void UniverseUtil::playVictoryTune | ( | ) |
Definition at line 48 of file universe_util.cpp.
References Music::GotoSong(), vs_options::missionvictorysong, and muzak.
Referenced by terminateMission().
void UniverseUtil::popSystem | ( | ) |
this function restores the active system.... there must be an equal number of pushSystems ans popSystems or else Vega Strike may behave unpredictably
Definition at line 269 of file universe_util_generic.cpp.
References _Universe, and Universe::popActiveStarSystem().
void UniverseUtil::precacheUnit | ( | std::string | name, |
std::string | faction | ||
) |
void UniverseUtil::precacheUnit | ( | string | type_string, |
string | faction_string | ||
) |
Definition at line 748 of file universe_util_generic.cpp.
References cachedUnits, UnitFactory::createUnit(), and FactionUtil::GetFactionIndex().
void UniverseUtil::pushSystem | ( | std::string | name) |
this function sets the "current" system to be "name" where name may be something like "Sol/Sol" or "Crucible/Cephid_17" this function may take some time if the system has not been loaded before
void UniverseUtil::pushSystem | ( | string | name) |
Definition at line 264 of file universe_util_generic.cpp.
References _Universe, Universe::GenerateStarSystem(), Universe::pushActiveStarSystem(), and Vector.
Definition at line 771 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::activeStarSystem, COUT, Universe::CurrentCockpit(), vs_options::custompython, Universe::popActiveStarSystem(), Universe::pushActiveStarSystem(), securepythonstr(), and Universe::SetActiveCockpit().
Referenced by sendCustom(), and CockpitKeys::TextMessageCallback().
Definition at line 710 of file universe_util_generic.cpp.
References _Universe, Universe::activeStarSystem(), and SafeStarSystemEntrancePoint().
Referenced by Unit::AutoPilotToErrorMessage(), AutoSafeEntrancePoint(), buyShip(), CrashForceDock(), createObjects(), GameCockpit::DoAutoLanding(), DockToSavedBases(), and Cockpit::Update().
QVector UniverseUtil::SafeStarSystemEntrancePoint | ( | StarSystem * | sts, |
QVector | pos, | ||
float | radial_size = -1 |
||
) |
Definition at line 673 of file universe_util_generic.cpp.
References UnitCollection::createIterator(), StarSystem::getUnitList(), i, UnitUtil::isAsteroid(), Unit::isUnit(), k, Unit::LocalPosition(), Magnitude(), NEBULAPTR, QVector, vs_options::respawn_unit_size, and Unit::rSize().
Referenced by SafeEntrancePoint().
void UniverseUtil::saveGame | ( | const string & | savename) |
Definition at line 159 of file universe_util.cpp.
References _Universe, Universe::AccessCockpit(), Universe::CurrentCockpit(), Network, NetClient::saveRequest(), setCurrentSaveGame(), and WriteSaveGame().
void UniverseUtil::saveGame | ( | const std::string & | savename) |
void UniverseUtil::securepythonstr | ( | string & | message) |
Definition at line 764 of file universe_util_generic.cpp.
Referenced by receivedCustom().
void UniverseUtil::sendCustom | ( | int | cp, |
string | cmd, | ||
string | args, | ||
string | id | ||
) |
Definition at line 205 of file universe_util.cpp.
References _Universe, fprintf, Network, Universe::numPlayers(), receivedCustom(), and NetClient::sendCustom().
this sets whether or not a player may autopilot. Normally they are both 0 and the autopiloting is allowed based on if enemies are near... if you pass in 1 then autopilot will be allowed no matter who is near... if you set -1 then autopilot is never allowed. global affects all players... player just affects the player who accepted the mission.
Definition at line 658 of file universe_util_generic.cpp.
References Mission::AUTO_NORMAL, Mission::AUTO_OFF, Mission::AUTO_ON, Mission::global_autopilot, mission, and Mission::player_autopilot.
this sets the completeness of a particular objective... chanigng the color onscreen
Definition at line 568 of file universe_util_generic.cpp.
References mission, Subcmd::Objective, Mission::objectives, Mission::player_num, NetServer::sendSaveData(), SERVER, Subcmd::SetValue, and VSServer.
std::string UniverseUtil::setCurrentSaveGame | ( | const std::string & | newsave) |
string UniverseUtil::setCurrentSaveGame | ( | const string & | newsave) |
Definition at line 1040 of file universe_util_generic.cpp.
References SetCurrentSaveGame().
void UniverseUtil::SetDifficulty | ( | float | diff) |
this sets the difficulty
Definition at line 529 of file universe_util_generic.cpp.
References game_data_t::difficulty, and g_game.
void UniverseUtil::SetGalaxyFaction | ( | std::string | sys, |
std::string | fac | ||
) |
void UniverseUtil::SetGalaxyFaction | ( | string | sys, |
string | fac | ||
) |
Definition at line 512 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), DEFAULT_FACTION_SAVENAME, SaveGame::getMissionStringData(), and Cockpit::savegame.
void UniverseUtil::setMissionOwner | ( | int | whichplayer) |
Definition at line 415 of file universe_util_generic.cpp.
References mission, and Mission::player_num.
void UniverseUtil::setObjective | ( | int | which, |
std::string | newobjective | ||
) |
this sets the objective's completeness (the int was returned by add objective)
void UniverseUtil::setObjective | ( | int | which, |
string | newobjective | ||
) |
Definition at line 559 of file universe_util_generic.cpp.
References dontBlankOut(), mission, Subcmd::Objective, Mission::objectives, Mission::player_num, NetServer::sendSaveData(), SERVER, Subcmd::SetValue, and VSServer.
void UniverseUtil::setOwner | ( | int | obj, |
UnitWrapper | un | ||
) |
Definition at line 42 of file unit_wrapper.cpp.
References UnitContainer::GetUnit(), and setOwnerII().
this sets the owner of a completeness
Definition at line 610 of file universe_util_generic.cpp.
References mission, and Mission::objectives.
Referenced by setOwner().
void UniverseUtil::setScratchUnit | ( | Unit * | un) |
Definition at line 250 of file universe_util_generic.cpp.
References scratch_unit, and UnitContainer::SetUnit().
Referenced by ChooseNavPoint(), and DockedScript().
void UniverseUtil::setScratchVector | ( | QVector | un) |
Definition at line 259 of file universe_util_generic.cpp.
References scratch_vector.
Referenced by pySetScratchVector(), RunPythonPhysicsFrame(), RunPythonPress(), RunPythonRelease(), and RunPythonToggle().
void UniverseUtil::setTargetLabel | ( | std::string | label) |
Definition at line 584 of file universe_util_generic.cpp.
References _Universe, Universe::AccessCockpit(), and Cockpit::setTargetLabel().
void UniverseUtil::SetTimeCompression | ( | ) |
this sets the time compresison value to zero
this gets the current game time since last start in seconds
this gets the current absolute startime in seconds this sets the time compresison value to zero
Definition at line 235 of file universe_util_generic.cpp.
References setTimeCompression().
void UniverseUtil::showSplashMessage | ( | const string & | text) |
Definition at line 185 of file universe_util.cpp.
References bootstrap_draw().
Referenced by BaseComputer::actionConfirmedLoadGame(), and NetActionConfirm::finalizeJoinGame().
void UniverseUtil::showSplashMessage | ( | const std::string & | text) |
void UniverseUtil::showSplashProgress | ( | float | progress) |
Definition at line 190 of file universe_util.cpp.
void UniverseUtil::showSplashScreen | ( | const string & | filename) |
Definition at line 169 of file universe_util.cpp.
References bootstrap_draw(), GetSplashScreen(), ParseDestinations(), SetStarSystemLoading(), and vs_options::splash_screen.
Referenced by BaseComputer::actionConfirmedLoadGame(), bootstrap_main_loop(), NetActionConfirm::confirmedJoinGame(), NetActionConfirm::finalizeJoinGame(), NetClient::Reconnect(), and ss_generating().
void UniverseUtil::showSplashScreen | ( | const std::string & | filename) |
|
static |
Definition at line 956 of file universe_util_generic.cpp.
Referenced by getSaveInfo().
|
static |
Definition at line 948 of file universe_util_generic.cpp.
Referenced by getSaveInfo().
double UniverseUtil::sin | ( | double | x) |
Definition at line 832 of file universe_util_generic.cpp.
Referenced by Audio::Test::EngParticleListener::computePosition(), Audio::Test::EngParticleListener::computeVelocity(), csXRotMatrix3::csXRotMatrix3(), csYRotMatrix3::csYRotMatrix3(), csZRotMatrix3::csZRotMatrix3(), Bolt::Draw(), NavigationSystem::DrawCircle(), NavigationSystem::DrawHalfCircleBottom(), NavigationSystem::DrawHalfCircleTop(), VSSprite::DrawHere(), NavigationSystem::DrawJump(), NavigationSystem::DrawNavCircle(), DrawOneTargetBox(), NavigationSystem::DrawPlanet(), NavigationSystem::dxyz(), PlanetaryOrbit::Execute(), Quaternion::from_axis_angle(), GFXCircle(), GFXSphereVertexList::GFXSphereVertexList(), SphereMesh::InitSphere(), linear_interpolate_uncapped(), MinRotationFromDirections(), NavigationSystem::SystemIterator::Position(), PhysicsSystem::Rotate(), Rotate(), Audio::Test::testComplexScene(), and SphericalTransform::Transform().
double UniverseUtil::sqrt | ( | double | x) |
Definition at line 816 of file universe_util_generic.cpp.
Referenced by Unit::AddVelocity(), AllocVerticesForSystem(), build_sqrt_table(), gfx_light::CalculateBounds(), Beam::Collide(), Unit::DealDamageToShield(), StarSystemGent::difffunc(), Audio::TVector3< LScalar >::distance(), DoParticles(), HaloSystem::Draw(), AtmosphereHalo::Draw(), GameCockpit::Draw(), DrawDockingBoxes(), NavigationSystem::DrawGalaxy(), NavigationSystem::DrawSystem(), NavigationSystem::dxyz(), EstimateGain(), GenerateSphereMap(), GFXCalculateFrustum(), GFXUploadLightState(), globQueryShell(), Mesh::LoadMeshes(), BaseInterface::MouseOver(), Audio::TVector3< LScalar >::norm(), NormalizeNormals(), Unit::querySphere(), Unit::querySphereNoRecurse(), Stupodmain(), and CoordinateSelect::UpdateMouse().
void UniverseUtil::startMenuInterface | ( | bool | firstTime, |
string | error = string() |
||
) |
Definition at line 246 of file gamemenu.cpp.
References Window::findControlById(), gamemenu_draw(), gamemenu_keyboard_handler(), GFXLoop(), GameMenu::init(), EventManager::ProcessMouseActive(), EventManager::ProcessMouseClick(), EventManager::ProcessMousePassive(), GameMenu::run(), Control::setHidden(), showAlert(), WindowController::window(), winsys_set_keyboard_func(), winsys_set_motion_func(), winsys_set_mouse_func(), and winsys_set_passive_motion_func().
Referenced by bootstrap_first_loop(), NetClient::checkMsg(), and NetClient::Reconnect().
void UniverseUtil::StopAllSounds | ( | void | ) |
Definition at line 110 of file universe_util.cpp.
References AUDStopAllSounds().
Referenced by buyShip(), and BaseComputer::updateTransactionControlsForSelection().
void UniverseUtil::StopTargettingEachOther | ( | std::string | fgname, |
std::string | faction, | ||
std::string | enfgname, | ||
std::string | enfaction | ||
) |
tells the respective flightgroups in this system to stop killing each other urgently...they may still attack–just not warping and stuff
void UniverseUtil::StopTargettingEachOther | ( | string | fgname, |
string | faction, | ||
string | enfgname, | ||
string | enfaction | ||
) |
tells the respective flightgroups in this system to stop killing each other urgently...they may still attack–just not warping and stuff
Definition at line 312 of file universe_util_generic.cpp.
References _Universe, Universe::activeStarSystem(), UnitCollection::createIterator(), Unit::faction, FactionUtil::GetFactionIndex(), UnitUtil::getFlightgroupName(), StarSystem::getUnitList(), i, and UnitUtil::setFgDirective().
bool UniverseUtil::systemInMemory | ( | std::string | name) |
Referenced by Orders::AggressiveAI::ExecuteNoEnemies().
bool UniverseUtil::systemInMemory | ( | string | nam) |
Definition at line 330 of file universe_util_generic.cpp.
References _Universe, i, and Universe::star_system.
double UniverseUtil::tan | ( | double | x) |
Definition at line 848 of file universe_util_generic.cpp.
Referenced by GameCockpit::GameCockpit().
void UniverseUtil::TargetEachOther | ( | std::string | fgname, |
std::string | faction, | ||
std::string | enfgname, | ||
std::string | enfaction | ||
) |
tells the respective flightgroups in this system to start shooting at each other
void UniverseUtil::TargetEachOther | ( | string | fgname, |
string | faction, | ||
string | enfgname, | ||
string | enfaction | ||
) |
tells the respective flightgroups in this system to start shooting at each other
Definition at line 285 of file universe_util_generic.cpp.
References _Universe, Universe::activeStarSystem(), UnitCollection::createIterator(), Unit::faction, FactionUtil::GetFactionIndex(), UnitUtil::getFlightgroupName(), StarSystem::getUnitList(), i, UnitUtil::setFgDirective(), UnitUtil::setFlightgroupLeader(), and Unit::Target().
void UniverseUtil::terminateMission | ( | bool | term) |
this ends the mission with either success or failure
Definition at line 534 of file universe_util_generic.cpp.
References mission, playVictoryTune(), and Mission::terminateMission().
Referenced by SaveGame::LoadSavedMissions().
double UniverseUtil::timeofday | ( | ) |
Definition at line 812 of file universe_util_generic.cpp.
References getNewTime().
std::string UniverseUtil::vsConfig | ( | std::string | category, |
std::string | option, | ||
std::string | def | ||
) |
Definition at line 146 of file universe_util_generic.cpp.
References VegaConfig::getVariable(), and vs_config.
|
static |
Definition at line 747 of file universe_util_generic.cpp.
Referenced by precacheUnit().
|
static |
Definition at line 239 of file universe_util_generic.cpp.
Referenced by getScratchUnit(), and setScratchUnit().
|
static |
Definition at line 240 of file universe_util_generic.cpp.
Referenced by getScratchVector(), and setScratchVector().