Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <universe_generic.h>
Public Member Functions | |
void | netLock (bool enable) |
A list of all factions. More... | |
bool | netLocked () |
bool | isServer () |
Cockpit * | isPlayerStarship (const Unit *fighter) |
Cockpit * | isPlayerStarshipVoid (const void *pointercompare) |
int | whichPlayerStarship (const Unit *fighter) |
Cockpit * | AccessCockpit () |
Cockpit * | AccessCockpit (int i) |
unsigned int | CurrentCockpit () |
virtual Camera * | AccessCamera (int num) |
Wrapper function for Star System. More... | |
virtual Camera * | AccessCamera () |
virtual Camera * | AccessHudCamera () |
Returns the current hud cam. More... | |
virtual void | SetViewport () |
Wrapper function for star system. More... | |
void | SetActiveCockpit (int whichcockpit) |
void | SetActiveCockpit (Cockpit *which) |
virtual void | WriteSaveGame (bool auto_save) |
virtual void | SetupCockpits (std::vector< std::string >players) |
virtual void | activateLightMap (int stage=1) |
virtual Texture * | getLightMap () |
virtual void | SelectCamera (int cam) |
Cockpit * | createCockpit (std::string player) |
void | getJumpPath (const std::string &from, const std::string &to, std::vector< std::string > &path) const |
const std::vector< std::string > & | getAdjacentStarSystems (const std::string &ss) const |
std::string | getGalaxyProperty (const std::string &sys, const std::string &prop) |
std::string | getGalaxyPropertyDefault (const std::string &sys, const std::string &prop, const std::string def="") |
GalaxyXML::Galaxy * | getGalaxy () |
bool | StillExists (StarSystem *ss) |
void | setActiveStarSystem (StarSystem *ss) |
void | pushActiveStarSystem (StarSystem *ss) |
void | popActiveStarSystem () |
void | clearAllSystems () |
StarSystem * | getActiveStarSystem (unsigned int size) |
unsigned int | getNumActiveStarSystem () |
void | LoadStarSystem (StarSystem *ss) |
void | UnloadStarSystem (StarSystem *ss) |
void | Generate1 (const char *file, const char *jumpback) |
void | Generate2 (StarSystem *ss) |
virtual StarSystem * | GenerateStarSystem (const char *file, const char *jumpback, Vector origin) |
void | LoadFactionXML (const char *factfile) |
Loads and parses factions. More... | |
Universe () | |
inits graphics with args More... | |
Universe (int argc, char **argv, const char *galaxy, bool server=false) | |
void | Init (const char *gal) |
virtual | ~Universe () |
virtual class StarSystem * | Init (string systemfile, const Vector ¢roid=Vector(0, 0, 0), const string planetname=string()) |
Loads Defaults in Graphics Drivers. More... | |
virtual void | StartDraw () |
Begins a scene. More... | |
void | Update () |
virtual void | Loop (void f()) |
Runs the main loop. More... | |
StarSystem * | activeStarSystem () |
returns active star system More... | |
unsigned int | numPlayers () |
Wrapper function for Star System. More... | |
StarSystem * | getStarSystem (string name) |
Wrapper function for Star System. More... | |
StarSystem * | scriptStarSystem () |
bool | setScriptSystem (string name) |
int | StarSystemIndex (StarSystem *ss) |
Public Attributes | |
StarDate | current_stardate |
std::vector< StarSystem * > | star_system |
Protected Attributes | |
std::auto_ptr< GalaxyXML::Galaxy > | galaxy |
unsigned int | current_cockpit |
The users cockpit. More... | |
std::vector< Cockpit * > | cockpit |
std::vector< StarSystem * > | active_star_system |
a generic camera facing the HUD More... | |
StarSystem * | script_system |
bool | is_server |
bool | network_lock |
Friends | |
class | Faction |
Many C++ implementations count classes within as friends. (not all) More... | |
Definition at line 50 of file universe_generic.h.
Universe::Universe | ( | ) |
Definition at line 174 of file universe_generic.cpp.
References Init(), is_server, and network_lock.
|
virtual |
Wrapper function for Star System.
Reimplemented in GameUniverse.
Definition at line 105 of file universe_generic.h.
Referenced by ContinuousTerrain::AdjustTerrain(), CalculateOrientation(), ParticlePoint::Draw(), ContinuousTerrain::Draw(), Bolt::Draw(), Background::Draw(), WarpTrail::Draw(), GameStarSystem::Draw(), Animation::Draw(), GamePlanet::Draw(), SphereMesh::Draw(), VDU::Draw(), Stars::Draw(), AtmosphereHalo::Draw(), GameUnit< UnitType >::Draw(), GameCockpit::Draw(), BaseInterface::Room::BaseShip::Draw(), NavigationSystem::Draw(), ParticleTrail::DrawAndUpdate(), DrawDockingBoxes(), GameUnit< UnitType >::DrawNow(), Mesh::DrawNow(), GamePlanet::DrawTerrain(), NebulaUpdate(), Animation::ProcessDrawQueue(), Mesh::ProcessUndrawnMeshes(), Mesh::ProcessZFarMeshes(), GameNebula::PutInsideCam(), ClickList::queryShip(), GameUnit< UnitType >::querySphereClickList(), Unit::reactToCollision(), QuadTree::Render(), Briefing::Render(), ClickList::requestIterator(), ClickList::requestShip(), GameCockpit::RestoreViewPort(), SetupFogState(), GameCockpit::SetupViewPort(), ShoveCamBehindUnit(), ShoveCamBelowUnit(), StarVlist::StarVlist(), QuadTree::Update(), StarVlist::UpdateGraphics(), GameUnit< UnitType >::UpdateHudMatrix(), CoordinateSelect::UpdateMouse(), and GameNebula::UpdatePhysics2().
|
inlinevirtual |
Reimplemented in GameUniverse.
Definition at line 109 of file universe_generic.h.
|
inline |
Definition at line 92 of file universe_generic.h.
References cockpit, and current_cockpit.
Referenced by CockpitKeys::_PitchDown(), CockpitKeys::_PitchUp(), CockpitKeys::_YawLeft(), CockpitKeys::_YawRight(), GameUniverse::AccessCamera(), NavPath::addNewPath(), AddUnitToSystem(), UniverseUtil::AdjustRelation(), FlyByWire::Afterburn(), CockpitKeys::Behind(), bootstrap_main_loop(), buildShipDescription(), BaseComputer::buySelectedCargo(), buyShip(), BaseComputer::buyUpgrade(), Mission::call_unit_launch(), checkedVisited(), Orders::FireAt::ChooseTargets(), clearSaveData(), clearSaveString(), Beam::Collide(), ComputeAutoGuarantee(), BaseComputer::BuyUpgradeOperation::concludeTransaction(), BaseComputer::SellUpgradeOperation::concludeTransaction(), BaseComputer::configureUpgradeCommitControls(), createObjects(), Unit::DealDamageToHullReturnArmor(), CommunicatingAI::Destroy(), ZoneInfo::display(), ZoneMgr::displayNPCs(), FireKeyboard::DockKey(), DockToSavedBases(), FireKeyboard::DoSpeechAndAni(), GameStarSystem::Draw(), GameUnit< UnitType >::Draw(), NavigationSystem::Draw(), NavigationSystem::DrawMission(), NavigationSystem::DrawObjectives(), NavigationSystem::DrawShip(), NavigationSystem::DrawSystem(), eraseSaveData(), eraseSaveString(), NavPath::evaluate(), ExamineWhenTargetKey(), Orders::AggressiveAI::Execute(), FireKeyboard::Execute(), Orders::FormUp::Execute(), Orders::FormUpToOwner::Execute(), FlyTo::Execute(), ExecuteDirector(), Orders::AggressiveAI::ExecuteNoEnemies(), GameUnit< UnitType >::Explode(), NetActionConfirm::finalizeJoinGame(), Mount::Fire(), Unit::ForceDock(), AbsolutePathNode::getDescription(), UniverseUtil::GetGalaxyFaction(), UnitUtil::getPhysicsPriority(), UniverseUtil::getPlayer(), UniverseUtil::getPlayerX(), CommunicatingAI::GetRandomUnit(), UniverseUtil::GetRelation(), getSaveData(), getSaveDataLength(), getSaveString(), getSaveStringLength(), SaveNetUtil::GetSaveStrings(), getStringList(), GetSystemColor(), UniverseUtil::getTargetLabel(), HelpOut(), CockpitKeys::InitPanInside(), CurrentPathNode::initSearchQueue(), TargetPathNode::initSearchQueue(), CockpitKeys::Inside(), CockpitKeys::InsideBack(), CockpitKeys::InsideLeft(), CockpitKeys::InsideRight(), CriteriaContains::isDestination(), CriteriaOwnedBy::isDestination(), CriteriaSector::isDestination(), CurrentPathNode::isDestination(), TargetPathNode::isDestination(), isPlayerFaction(), FireKeyboard::JoinFg(), FlyByKeyboard::JumpKey(), StarSystem::JumpTo(), LeadMe(), UniverseUtil::loadGame(), LoadMission(), BaseComputer::loadMissionsMasterList(), BaseComputer::loadShipDealerControls(), loadStringList(), CockpitKeys::LookDown(), CockpitKeys::LookLeft(), CockpitKeys::LookRight(), CockpitKeys::LookUp(), BaseComputer::maxQuantityForPlayer(), MyFunction(), GameCockpit::NavScreen(), NearestSystem(), NebulaUpdate(), CockpitKeys::OutsideTarget(), CockpitKeys::Pan(), CockpitKeys::PanTarget(), Unit::PerformDockingOperations(), FireKeyboard::ProcessCommMessage(), processDelayedMissions(), StarSystem::ProcessPendingJumps(), pushSaveData(), pushSaveString(), putSaveData(), putSaveString(), Enhancement::reactToCollision(), BaseComputer::recalcTitle(), UniverseUtil::receivedCustom(), NetClient::Reconnect(), RefreshGUI(), NavPath::removeOldPath(), NetClient::Respawn(), RespawnNow(), Unit::RestoreGodliness(), NetServer::saveAccount(), saveDataList(), UniverseUtil::saveGame(), saveStringList(), ScoreKill(), CockpitKeys::ScrollDown(), CockpitKeys::ScrollUp(), GameUniverse::SelectCamera(), BaseComputer::sellSelectedCargo(), BaseComputer::sellUpgrade(), NetServer::sendCustom(), NetServer::sendMessage(), NetServer::sendMission(), NetServer::sendSaveData(), NavPath::setDestinationNode(), UniverseUtil::SetGalaxyFaction(), NavPath::setSourceNode(), UniverseUtil::setTargetLabel(), NavigationSystem::Setup(), GameUniverse::SetViewport(), BaseComputer::showPlayerInfo(), starSystemOK(), GameUniverse::StartDraw(), NetClient::startGame(), SuicideKey(), CockpitKeys::SwitchLVDU(), CockpitKeys::SwitchMVDU(), CockpitKeys::SwitchRVDU(), CockpitKeys::SwitchULVDU(), CockpitKeys::SwitchUMVDU(), SwitchUnits(), SwitchUnits2(), CockpitKeys::SwitchURVDU(), SwitchVDUTo(), NetClient::synchronizeTime(), TargIncomingMissile(), Mission::terminateMission(), CockpitKeys::TextMessageCallback(), GameUnit< UnitType >::Thrust(), GameUnit< UnitType >::TransferUnitToSystem(), Unit::UnDock(), FireKeyboard::UnDockKey(), StarSystem::Update(), Cockpit::Update(), Cockpit::updateAttackers(), UpdateCameraSnds(), UpdateMasterPartList(), GameNebula::UpdatePhysics2(), BaseComputer::updateTransactionControlsForSelection(), CockpitKeys::ViewTarget(), GameUniverse::WriteSaveGame(), WriteSaveGame(), CockpitKeys::ZoomIn(), CockpitKeys::ZoomOut(), and CockpitKeys::ZoomReset().
Definition at line 96 of file universe_generic.h.
References cockpit.
|
inlinevirtual |
Returns the current hud cam.
Reimplemented in GameUniverse.
Definition at line 114 of file universe_generic.h.
|
inlinevirtual |
Reimplemented in GameUniverse.
Definition at line 124 of file universe_generic.h.
Referenced by Background::Draw(), GameCockpit::Draw(), NavigationSystem::Draw(), SetupEnvmapPass(), and SetupSpecMapSecondPass().
|
inline |
returns active star system
Definition at line 200 of file universe_generic.h.
References active_star_system.
Referenced by NetClient::AddClientObject(), AddUnitToSystem(), AllUnitsCloseAndEngage(), Arrested(), GameCockpit::AutoLanding(), Unit::AutoPilotToErrorMessage(), Bolt::Bolt(), BoltDestroyGeneric(), buyShip(), CalculateNearestWarpUnit(), CollideMap::CheckCollisions(), CollideChecker< T, canbebolt >::CheckCollisionsInner(), CollideMap::CheckUnitCollisions(), ChooseNavPoint(), ChooseNearNavPoint(), Orders::FireAt::ChooseTargets(), ChooseTargets(), Terrain::Collide(), Bolt::Collide(), Unit::Collide(), Bolt::CollideAnon(), CreateCargoForOwnerStarship(), createObjects(), Bolt::Destroy(), Missile::Discharge(), DoDockingOps(), Bolt::Draw(), GameStarSystem::Draw(), GameUnit< UnitType >::Draw(), GameCockpit::Draw(), UnitDrawer::draw(), NavigationSystem::DrawSystem(), GamePlanet::DrawTerrain(), Unit::EjectCargo(), FireKeyboard::Execute(), GameUnit< UnitType >::Explode(), Radar::Sensor::FindTracksInRange(), findUnitInStarsystem(), getAtmospheric(), NavigationSystem::getCurrentSystem(), NavigationSystem::getDestinationSystem(), NavigationSystem::getFocusedSystem(), getNearestTarget(), getNearestTargetUnit(), CommunicatingAI::GetRandomUnit(), NavigationSystem::getSelectedSystem(), Unit::getStarSystem(), GetThreat(), UnitUtil::getUnitSystemFile(), HelpOut(), CockpitKeys::Inside(), Unit::jumpReactToCollision(), StarSystem::JumpTo(), KillDuplicateUnits(), LoadMission(), main_loop(), Mount::PhysicsAlignedFire(), Orders::AggressiveAI::ProcessCurrentFgDirective(), processDelayedMissions(), StarSystem::ProcessPendingJumps(), Unit::RemoveFromSystem(), NetClient::Respawn(), RestoreFirstPassState(), Unit::ReTargetFg(), UniverseUtil::SafeEntrancePoint(), scriptStarSystem(), sellShip(), NetServer::sendJump(), NetServer::sendMessage(), Orders::FormUpToOwner::SetParent(), Cockpit::SetParent(), NavigationSystem::Setup(), starSystemOK(), GameUniverse::StartDraw(), UniverseUtil::StopTargettingEachOther(), SwapInNewShipName(), TableLocationChanged(), Unit::Target(), UniverseUtil::TargetEachOther(), GameUnit< UnitType >::TransferUnitToSystem(), UnDockNow(), Unit::UpAndDownGrade(), Bolt::Update(), Atmosphere::Update(), Cockpit::Update(), Cockpit::updateAttackers(), UpdateBackpointers< Unit::UNIT_ONLY >::updateBackpointer(), Unit::UpdatePhysics(), GameNebula::UpdatePhysics2(), Unit::UpdateSubunitPhysics(), GameUniverse::WriteSaveGame(), and StarSystem::~StarSystem().
void Universe::clearAllSystems | ( | ) |
Definition at line 26 of file universe_generic.cpp.
Referenced by NetActionConfirm::finalizeJoinGame(), NetClient::Reconnect(), NetClient::Respawn(), NetClient::startGame(), and Cockpit::Update().
Cockpit * Universe::createCockpit | ( | std::string | player) |
Definition at line 37 of file universe_generic.cpp.
Referenced by NetClient::startGame().
|
inline |
Definition at line 100 of file universe_generic.h.
References current_cockpit.
Referenced by UniverseUtil::AdjustRelation(), delayed_mission::delayed_mission(), Mission::DirectorInitgame(), GameCockpit::Draw(), Unit::EjectCargo(), ExecuteDirector(), GameCockpit::ForceSwitchControl(), g(), UniverseUtil::getCurrentPlayer(), UniverseUtil::GetRelation(), UniverseUtil::getSaveInfo(), kbGetInput(), UniverseUtil::loadGame(), LoadMission(), SaveGame::LoadSavedMissions(), MapKey(), num_delayed_missions(), UniverseUtil::numActiveMissions(), processDelayedMissions(), UniverseUtil::receivedCustom(), GameCockpit::Respawn(), NetClient::Respawn(), UniverseUtil::saveGame(), GameCockpit::SwitchControl(), SwitchUnits(), SwitchUnits2(), CockpitKeys::TextMessageKey(), GameCockpit::TurretControl(), Unit::UnDock(), StarSystem::Update(), and Cockpit::Update().
void Universe::Generate1 | ( | const char * | file, |
const char * | jumpback | ||
) |
Definition at line 261 of file universe_generic.cpp.
References UniverseUtil::ComputeSystemSerials(), f, VegaConfig::getVariable(), MakeStarSystem(), VSFileSystem::Ok, VSFileSystem::VSFile::OpenReadOnly(), XMLSupport::parse_bool(), RemoveDotSystem(), SERVER, ss_generating(), VSFileSystem::SystemFile, and vs_config.
Referenced by GameUniverse::GenerateStarSystem().
void Universe::Generate2 | ( | StarSystem * | ss) |
Definition at line 278 of file universe_generic.cpp.
References Mission::DirectorStartStarSystem(), first(), firsttime, StarSystem::getFileName(), VegaConfig::getVariable(), i, mission, XMLSupport::parse_int(), SIM_QUEUE_SIZE, ss_generating(), StarSystem::SwapOut(), StarSystem::UpdateUnitPhysics(), vs_config, and VSFileSystem::vs_fprintf().
Referenced by GameUniverse::GenerateStarSystem().
|
virtual |
Reimplemented in GameUniverse.
Definition at line 313 of file universe_generic.cpp.
References GetLoadedStarSystem(), and StarSystem::StarSystem().
Referenced by ZoneMgr::addZone(), Init(), StarSystem::JumpTo(), UniverseUtil::pushSystem(), NetClient::Respawn(), and Cockpit::Update().
|
inline |
Definition at line 161 of file universe_generic.h.
References active_star_system, and size.
Referenced by GameUniverse::activateLightMap(), GameUniverse::getLightMap(), StarSystem::JumpTo(), StarSystem::Update(), and Cockpit::Update().
const vector< std::string > & Universe::getAdjacentStarSystems | ( | const std::string & | ss) | const |
Definition at line 258 of file galaxy.cpp.
References getStarSystemName(), getStarSystemSector(), ParseDestinations(), and RemoveDotSystem().
Referenced by UniverseUtil::GetAdjacentSystem(), UniverseUtil::GetNumAdjacentSystems(), and NavigationSystem::CachedSystemIterator::SystemInfo::loadData().
|
inline |
Definition at line 137 of file universe_generic.h.
References galaxy.
Referenced by StarIter::Done(), Planet::getHumanReadablePlanetType(), CriteriaContains::isDestination(), StarSystemGent::MakePlanet(), NearestSystem(), NumStarsInGalaxy(), readplanetentity(), and StarIter::StarIter().
std::string Universe::getGalaxyProperty | ( | const std::string & | sys, |
const std::string & | prop | ||
) |
Definition at line 243 of file galaxy.cpp.
References getStarSystemName(), getStarSystemSector(), and RemoveDotSystem().
Referenced by AllocVerticesForSystem(), BaseComputer::getColorForGroup(), UniverseUtil::GetGalaxyFaction(), UniverseUtil::GetGalaxyProperty(), NavigationSystem::CachedSystemIterator::SystemInfo::loadData(), NavigationSystem::SystemIterator::Position(), and SystemLocation().
std::string Universe::getGalaxyPropertyDefault | ( | const std::string & | sys, |
const std::string & | prop, | ||
const std::string | def = "" |
||
) |
Definition at line 251 of file galaxy.cpp.
References getStarSystemName(), getStarSystemSector(), and RemoveDotSystem().
Referenced by UniverseUtil::GetGalaxyPropertyDefault().
void Universe::getJumpPath | ( | const std::string & | from, |
const std::string & | to, | ||
std::vector< std::string > & | path | ||
) | const |
Definition at line 265 of file galaxy.cpp.
References i.
Referenced by CreateCargoForOwnerStarship(), and UniverseUtil::GetJumpPath().
|
inlinevirtual |
Reimplemented in GameUniverse.
Definition at line 125 of file universe_generic.h.
Referenced by Background::Draw().
|
inline |
Definition at line 165 of file universe_generic.h.
References active_star_system.
Referenced by Unit::UpAndDownGrade(), Cockpit::Update(), and StarSystem::~StarSystem().
StarSystem * Universe::getStarSystem | ( | string | name) |
Wrapper function for Star System.
Wrapper function for star system Returns the current hud cam Wrapper function for star system
Definition at line 231 of file universe_generic.cpp.
References StarSystem::getName(), StarSystem::name, and star_system.
Referenced by setScriptSystem().
void Universe::Init | ( | const char * | gal) |
Definition at line 161 of file universe_generic.cpp.
References firsttime, ROLES::getAllRolePriorities(), LoadWeapons(), and VSFileSystem::weapon_list.
Referenced by bootstrap_main_loop(), GameUniverse::Init(), NetClient::startGame(), and Universe().
|
virtual |
Loads Defaults in Graphics Drivers.
Should load the Universe data file. Now just inits system with test.xml
Reimplemented in GameUniverse.
Definition at line 225 of file universe_generic.cpp.
References GenerateStarSystem().
Definition at line 99 of file universe_generic.cpp.
Referenced by BaseComputer::actionConfirmedLoadGame(), BaseComputer::actionConfirmedSaveGame(), BaseComputer::actionLoadGame(), BaseComputer::actionSaveGame(), UnitUtil::addCredits(), Unit::AddVelocity(), Unit::ApplyDamage(), Unit::ApplyLocalDamage(), Unit::ApplyNetDamage(), GameUnit< UnitType >::ArmorDamageSound(), Unit::AutoPilotToErrorMessage(), Mission::call_unit_launch(), Beam::Collide(), Unit::Collide(), UnitUtil::commAnimation(), UnitUtil::communicateTo(), ComputeAutoGuarantee(), Unit::DealDamageToHullReturnArmor(), GameUnit< UnitType >::DealDamageToShield(), ZoneInfo::display(), Unit::EjectCargo(), FlyByKeyboard::Execute(), FireKeyboard::Execute(), FlyByWire::Execute(), GameUnit< UnitType >::Explode(), Unit::FilterUpgradeList(), BaseComputer::fixUpgrade(), Pilot::getAnger(), UnitUtil::getCredits(), UnitUtil::getPhysicsPriority(), Unit::getStarSystem(), Unit::getTractorability(), Unit::GetVelocityDifficultyMult(), GameUnit< UnitType >::HullDamageSound(), isPlayerStarshipVoid(), BaseComputer::isTransactionOK(), Unit::jumpReactToCollision(), StarSystem::JumpTo(), LeadMe(), GameCockpit::OnDockEnd(), GameCockpit::OnJumpBegin(), GameCockpit::OnJumpEnd(), StarSystem::ProcessPendingJumps(), GamePlanet::reactToCollision(), Unit::reactToCollision(), Unit::RegenShields(), Unit::ResolveForces(), BaseComputer::sellShip(), sellShip(), Orders::FireAt::ShouldFire(), Unit::Target(), GameUnit< UnitType >::Thrust(), Unit::TransferUnitToSystem(), Cockpit::Update(), Unit::UpdatePhysics(), Unit::UpdatePhysics2(), and WARPENERGYMULTIPLIER().
|
inline |
Definition at line 85 of file universe_generic.h.
References isPlayerStarship().
Referenced by Unit::ApplyDamage(), Orders::TurretAI::Execute(), and Mount::PhysicsAlignedFire().
|
inline |
Definition at line 80 of file universe_generic.h.
References is_server.
|
inline |
Loads and parses factions.
Definition at line 175 of file universe_generic.h.
References Faction::LoadXML().
void Universe::LoadStarSystem | ( | StarSystem * | ss) |
|
inlinevirtual |
Runs the main loop.
Reimplemented in GameUniverse.
Definition at line 198 of file universe_generic.h.
References f.
Referenced by bootstrap_first_loop(), bootstrap_main_loop(), and main().
void Universe::netLock | ( | bool | enable) |
A list of all factions.
Definition at line 213 of file universe_generic.cpp.
References Network, network_lock, and SERVER.
Referenced by ZoneMgr::addClient(), ZoneMgr::addZone(), UnitFactory::createPlanet(), and Unit::Kill().
bool Universe::netLocked | ( | ) |
Definition at line 208 of file universe_generic.cpp.
References Network, network_lock, and SERVER.
Referenced by Unit::AddCargo(), Unit::BuyCargo(), buyShip(), Order::Communicate(), Unit::RemoveCargo(), Unit::SellCargo(), sellShip(), Unit::UnDock(), and Unit::UpAndDownGrade().
|
inline |
Wrapper function for Star System.
Accessor to cockpit
Definition at line 214 of file universe_generic.h.
References cockpit.
Referenced by base_main_loop(), bootstrap_main_loop(), Orders::FireAt::ChooseTargets(), cleanup(), NetClient::CleanUp(), clearSaveData(), clearSaveString(), CommunicatingAI::Destroy(), ZoneMgr::displayNPCs(), GameCockpit::Draw(), Unit::EjectCargo(), eraseSaveData(), eraseSaveString(), getNetworkUnit(), UniverseUtil::getNumPlayers(), UnitUtil::getPhysicsPriority(), CommunicatingAI::GetRandomUnit(), getSaveData(), getSaveDataLength(), getSaveString(), getSaveStringLength(), getStringList(), BaseInterface::InitCallbacks(), UniverseUtil::IOmessage(), isPlayerFaction(), LeadMe(), loadStringList(), main_loop(), NearestSystem(), processDelayedMissions(), pushSaveData(), pushSaveString(), putSaveData(), putSaveString(), GameMenu::readJoinGameControls(), NetClient::Reconnect(), SaveGame::ReloadPickledData(), NetClient::Respawn(), RespawnNow(), saveDataList(), saveStringList(), ScoreKill(), UniverseUtil::sendCustom(), NetServer::start(), NetClient::startGame(), SwitchUnits(), NetClient::synchronizeTime(), StarSystem::Update(), Cockpit::Update(), Cockpit::updateAttackers(), UpdateMasterPartList(), VDU::VDU(), and WriteSaveGame().
|
inline |
Definition at line 153 of file universe_generic.h.
References active_star_system.
Referenced by compute_light_dot(), createObjects(), ExecuteDirector(), GameStarSystem::GameStarSystem(), UniverseUtil::popSystem(), processDelayedMissions(), UniverseUtil::receivedCustom(), NetClient::Respawn(), StarSystem::StarSystem(), GameUniverse::StartDraw(), StarSystem::Update(), Cockpit::Update(), GameStarSystem::~GameStarSystem(), and StarSystem::~StarSystem().
|
inline |
Definition at line 149 of file universe_generic.h.
References active_star_system.
Referenced by compute_light_dot(), createObjects(), ExecuteDirector(), GameStarSystem::GameStarSystem(), processDelayedMissions(), UniverseUtil::pushSystem(), UniverseUtil::receivedCustom(), NetClient::Respawn(), setActiveStarSystem(), StarSystem::StarSystem(), GameUniverse::StartDraw(), StarSystem::Update(), Cockpit::Update(), GameStarSystem::~GameStarSystem(), and StarSystem::~StarSystem().
|
inline |
Definition at line 241 of file universe_generic.h.
References activeStarSystem(), and script_system.
Referenced by Mission::call_unit_launch().
|
inlinevirtual |
void Universe::SetActiveCockpit | ( | int | whichcockpit) |
Definition at line 120 of file universe_generic.cpp.
References VSFileSystem::vs_fprintf().
Referenced by createObjects(), ExecuteDirector(), kbGetInput(), processDelayedMissions(), UniverseUtil::receivedCustom(), NetClient::Respawn(), GameUniverse::StartDraw(), and StarSystem::Update().
void Universe::SetActiveCockpit | ( | Cockpit * | which) |
|
inline |
Definition at line 142 of file universe_generic.h.
References active_star_system, and pushActiveStarSystem().
Referenced by StarSystem::ProcessPendingJumps(), and GameUnit< UnitType >::TransferUnitToSystem().
|
inline |
|
virtual |
Reimplemented in GameUniverse.
Definition at line 138 of file universe_generic.cpp.
References i.
Referenced by bootstrap_main_loop().
|
inlinevirtual |
Wrapper function for star system.
Reimplemented in GameUniverse.
Definition at line 119 of file universe_generic.h.
int Universe::StarSystemIndex | ( | StarSystem * | ss) |
|
inlinevirtual |
Begins a scene.
Reimplemented in GameUniverse.
Definition at line 194 of file universe_generic.h.
Referenced by main_loop().
bool Universe::StillExists | ( | StarSystem * | ss) |
Definition at line 203 of file universe_generic.cpp.
References star_system.
Referenced by StarSystem::ProcessPendingJumps().
void Universe::UnloadStarSystem | ( | StarSystem * | ss) |
Definition at line 220 of file universe_generic.cpp.
void Universe::Update | ( | ) |
Definition at line 324 of file universe_generic.cpp.
References VegaConfig::getVariable(), i, XMLSupport::parse_floatf(), StarSystem::Update(), and vs_config.
Referenced by GameUniverse::StartDraw().
Definition at line 110 of file universe_generic.cpp.
References i.
Referenced by BaseComputer::acceptMission(), AcctLogout(), Unit::AddCargo(), CommunicatingAI::AdjustRelationTo(), AllUnitsCloseAndEngage(), Arrested(), buildCargoDescription(), ChooseTargets(), BaseInterface::Room::Launch::Click(), Order::Communicate(), CrashForceDock(), ZoneInfo::display(), Unit::Dock(), Pilot::DoHit(), VDU::Draw(), Unit::Fire(), Pilot::getAnger(), UnitUtil::getFactionRelation(), getNearestTargetUnit(), UnitUtil::getRelationFromFaction(), UnitUtil::getRelationToFaction(), SaveNetUtil::GetSaveStrings(), UnitUtil::isPlayerStarship(), StarSystem::ProcessPendingJumps(), Unit::RemoveCargo(), NetClient::saveRequest(), ScoreKill(), NetServer::sendJump(), NetServer::sendKill(), VDU::SwitchMode(), Unit::UnDock(), Unit::UnFire(), Unit::UpAndDownGrade(), and GameUnit< UnitType >::UpdatePhysics2().
|
inlinevirtual |
Reimplemented in GameUniverse.
Definition at line 122 of file universe_generic.h.
Referenced by cleanup(), and CockpitKeys::QuitNow().
|
friend |
Many C++ implementations count classes within as friends. (not all)
Definition at line 71 of file universe_generic.h.
|
protected |
a generic camera facing the HUD
init proc currently only 1 star system is stored
Definition at line 62 of file universe_generic.h.
Referenced by activeStarSystem(), getActiveStarSystem(), getNumActiveStarSystem(), popActiveStarSystem(), pushActiveStarSystem(), setActiveStarSystem(), and GameUniverse::StartDraw().
|
protected |
Definition at line 56 of file universe_generic.h.
Referenced by AccessCockpit(), numPlayers(), GameUniverse::SetupCockpits(), GameUniverse::StartDraw(), GameUniverse::WriteSaveGame(), and ~Universe().
|
protected |
The users cockpit.
Definition at line 55 of file universe_generic.h.
Referenced by AccessCockpit(), CurrentCockpit(), and GameUniverse::Init().
StarDate Universe::current_stardate |
Definition at line 79 of file universe_generic.h.
Referenced by VDU::Draw(), UniverseUtil::getStarDate(), UniverseUtil::getStarTime(), NetClient::loginAccept(), BaseComputer::recalcTitle(), and SaveGame::WriteDynamicUniverse().
|
protected |
Definition at line 53 of file universe_generic.h.
Referenced by getGalaxy().
|
protected |
Definition at line 66 of file universe_generic.h.
Referenced by GameUniverse::GameUniverse(), isServer(), and Universe().
|
protected |
Definition at line 67 of file universe_generic.h.
Referenced by netLock(), netLocked(), and Universe().
|
protected |
Definition at line 65 of file universe_generic.h.
Referenced by scriptStarSystem(), and setScriptSystem().
std::vector< StarSystem* > Universe::star_system |
Definition at line 262 of file universe_generic.h.
Referenced by ZoneMgr::addZone(), getStarSystem(), LoadStarSystem(), NetServer::start(), GameUniverse::StartDraw(), StillExists(), and UniverseUtil::systemInMemory().