Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "vegastrike.h"
#include "basecomputer.h"
#include "savegame.h"
#include "universe_util.h"
#include "save_util.h"
#include <algorithm>
#include <set>
#include "load_mission.h"
#include "cmd/planet_generic.h"
#include "cmd/unit_util.h"
#include "cmd/music.h"
#include "cmd/unit_const_cache.h"
#include "cmd/unit_factory.h"
#include "gui/modaldialog.h"
#include "main_loop.h"
#include "lin_time.h"
#include "gui/newbutton.h"
#include "gui/staticdisplay.h"
#include "gui/textinputdisplay.h"
#include "gui/simplepicker.h"
#include "gui/groupcontrol.h"
#include "gui/scroller.h"
#include "networking/netclient.h"
#include "unit_xml.h"
#include "gfx/sprite.h"
#include "gfx/aux_texture.h"
#include "gamemenu.h"
#include "audiolib.h"
#include <unistd.h>
#include <pwd.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
Go to the source code of this file.
Classes | |
struct | ModeInfo |
class | CargoColorSort |
class | BaseComputer::UpgradeOperation |
class | BaseComputer::BuyUpgradeOperation |
class | BaseComputer::SellUpgradeOperation |
class | UpgradeOperationMountDialog |
class | PriceSort |
Namespaces | |
CockpitKeys | |
Constant Groups | |
CockpitKeys | |
Macros | |
#define | PRETTY_ADD(str, val, digits) |
#define | PRETTY_ADDN(str, val, digits) |
#define | PRETTY_ADDU(str, val, digits, unit) |
Typedefs | |
typedef int(* | scancompare )(const void *v1, const void *v2) |
Functions | |
static GFXColor | UnsaturatedColor (float r, float g, float b, float a=1.0f) |
std::vector< std::string > | getWeapFilterVec () |
bool | upgradeNotAddedToCargo (std::string category) |
std::string | getDisplayCategory (const Cargo &cargo) |
static GFXColor | NO_MONEY_COLOR () |
static GFXColor | PROHIBITED_COLOR () |
static GFXColor | DOWNGRADE_OR_NONCOMPAT_COLOR () |
static GFXColor | NO_ROOM_COLOR () |
static GFXColor | ITEM_DESTROYED_COLOR () |
static GFXColor | CATEGORY_TEXT_COLOR () |
static GFXColor | MISSION_COLOR () |
static GFXColor | DEFAULT_UPGRADE_COLOR () |
static GFXColor | MOUNT_POINT_NO_SELECT () |
static GFXColor | MOUNT_POINT_EMPTY () |
static GFXColor | MOUNT_POINT_FULL () |
const Unit * | makeFinalBlankUpgrade (string name, int faction) |
int | GetModeFromName (const char *) |
Cargo * | GetMasterPartList (const char *input_buffer) |
Unit & | GetUnitMasterPartList () |
void | SwitchUnits (Unit *ol, Unit *nw) |
void | TerminateCurrentBase (void) |
void | CurrentBaseUnitSet (Unit *un) |
string | MakeUnitXMLPretty (std::string, Unit *) |
float | totalShieldEnergyCapacitance (const Shield &shield) |
void | RespawnNow (Cockpit *cockpit) |
void | showUnitStats (Unit *playerUnit, string &text, int subunitlevel, int mode, Cargo &item) |
string | buildShipDescription (Cargo &item, string &descriptiontexture) |
string | buildCargoDescription (const Cargo &item, BaseComputer &computer, float price) |
void | prettyPrintFloat (char *buffer, float f, int digitsBefore, int digitsAfter, int bufferLen=128) |
string | buildUpgradeDescription (Cargo &item) |
int | basecargoassets (Unit *base, string cargoname) |
const GFXColor | BASIC_REPAIR_TEXT_COLOR () |
template<typename T > | |
T | mymin (T a, T b) |
template<typename T > | |
T | mymax (T a, T b) |
static std::string | beautify (const string &input) |
static double | usedValue (double originalValue) |
float | RepairPrice (float operational, float price) |
static float | basicRepairPrice (void) |
static float | SellPrice (float operational, float price) |
const Unit * | makeTemplateUpgrade (string name, int faction) |
const Unit * | getUnitFromUpgradeName (const string &upgradeName, int myUnitFaction=0) |
bool | isWeapon (std::string name) |
bool | UpgradeAllowed (const Cargo &item, Unit *playerUnit) |
int | SelectDockPort (Unit *utdw, Unit *parent) |
static void | eliminateZeroCargo (Unit *un) |
static std::string | GarnerInfoFromSaveGame (const string &filename) |
static int | nodirs (const struct dirent *entry) |
static int | datesort (const void *v1, const void *v2) |
static void | BasicRepair (Unit *parent) |
static bool | matchCargoToWeapon (const std::string &cargoName, const std::string &weaponName) |
Cargo | CreateCargoForOwnerStarship (const Cockpit *cockpit, const Unit *base, int i) |
Cargo | CreateCargoForOwnerStarshipName (const Cockpit *cockpit, const Unit *base, std::string name, int &index) |
void | SwapInNewShipName (Cockpit *cockpit, Unit *base, const std::string &newFileName, int swappingShipsIndex) |
string | buildShipDescription (Cargo &item, std::string &texturedescription) |
void | trackPrice (int whichplayer, const Cargo &item, float price, const string &systemName, const string &baseName, vector< string > &highest, vector< string > &lowest) |
bool | sellShip (Unit *baseUnit, Unit *playerUnit, std::string shipname, BaseComputer *bcomputer) |
bool | buyShip (Unit *baseUnit, Unit *playerUnit, std::string content, bool myfleet, bool force_base_inventory, BaseComputer *bcomputer) |
static std::string | factionColorTextString (int faction) |
void | CockpitKeys::QuitNow () |
Variables | |
const char * | DamagedCategory |
std::string | emergency_downgrade_mode |
std::string | CurrentSaveGameName |
std::vector< std::string > | weapfiltervec = getWeapFilterVec() |
vector< unsigned int > | base_keyboard_queue |
static const char | CATEGORY_SEP = '/' |
static const char | CATEGORY_TAG = (-1) |
static bool | color_prohibited_upgrade_flag = false |
static bool | color_downgrade_or_noncompatible_flag = false |
static bool | color_insufficient_space_flag = false |
static bool | color_insufficient_money_flag = false |
static const float | MODE_BUTTON_SPACE = 0.03 |
static const char *const | MISSION_SCRIPTS_LABEL = "mission_scripts" |
static const char *const | MISSION_NAMES_LABEL = "mission_names" |
static const char *const | MISSION_DESC_LABEL = "mission_descriptions" |
static const char *const | NEWS_NAME_LABEL = "news" |
static const string | LOAD_FAILED = "LOAD_FAILED" |
const string | BASIC_REPAIR_NAME = "Basic Repair & Refuel" |
const string | BASIC_REPAIR_DESC |
static const ModeInfo | modeInfo [] |
static const string | GOT_MOUNT_ID = "GotMount" |
static const string | GOT_TURRET_ID = "GotTurret" |
static const string | CONFIRM_ID = "Confirm" |
static const char * | WeaponTypeStrings [] |
#define PRETTY_ADD | ( | str, | |
val, | |||
digits | |||
) |
Definition at line 411 of file basecomputer.cpp.
Referenced by showUnitStats(), and trackPrice().
#define PRETTY_ADDN | ( | str, | |
val, | |||
digits | |||
) |
Definition at line 421 of file basecomputer.cpp.
Referenced by showUnitStats(), and BaseComputer::updateTransactionControlsForSelection().
#define PRETTY_ADDU | ( | str, | |
val, | |||
digits, | |||
unit | |||
) |
Definition at line 429 of file basecomputer.cpp.
Referenced by showUnitStats().
typedef int(* scancompare)(const void *v1, const void *v2) |
Definition at line 3053 of file basecomputer.cpp.
Definition at line 3759 of file basecomputer.cpp.
References Unit::GetCargo(), and Cargo::quantity.
Referenced by BaseComputer::BuyUpgradeOperation::concludeTransaction().
const GFXColor BASIC_REPAIR_TEXT_COLOR | ( | ) |
Definition at line 254 of file basecomputer.cpp.
Referenced by BaseComputer::loadBuyUpgradeControls().
|
static |
Definition at line 3376 of file basecomputer.cpp.
References UnitUtil::addCredits(), basicRepairPrice(), UnitUtil::getCredits(), Unit::RepairCost(), Unit::RepairUpgrade(), and showAlert().
Referenced by BaseComputer::buyUpgrade().
|
static |
Definition at line 391 of file basecomputer.cpp.
References game_data_t::difficulty, g_game, VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by BasicRepair(), BaseComputer::loadBuyUpgradeControls(), and BaseComputer::updateTransactionControlsForSelection().
|
static |
Definition at line 361 of file basecomputer.cpp.
References i.
Referenced by BaseComputer::createCategoryCell(), BaseComputer::loadListPicker(), BaseComputer::loadMissionsMasterList(), and showUnitStats().
string buildCargoDescription | ( | const Cargo & | item, |
BaseComputer & | computer, | ||
float | price | ||
) |
Definition at line 4379 of file basecomputer.cpp.
References _Universe, Unit::getFullname(), UniverseUtil::getSystemName(), UnitContainer::GetUnit(), VegaConfig::getVariable(), i, Unit::isUnit(), BaseComputer::m_base, BaseComputer::m_player, Unit::name, XMLSupport::parse_bool(), PLANETPTR, trackPrice(), vs_config, and Universe::whichPlayerStarship().
Referenced by BaseComputer::updateTransactionControlsForSelection().
string buildShipDescription | ( | Cargo & | item, |
string & | descriptiontexture | ||
) |
Referenced by BaseComputer::updateTransactionControlsForSelection().
string buildShipDescription | ( | Cargo & | item, |
std::string & | texturedescription | ||
) |
Definition at line 4124 of file basecomputer.cpp.
References _Universe, Universe::AccessCockpit(), UnitFactory::createUnit(), current_unit_load_mode, DEFAULT, Cargo::GetCategory(), Cargo::GetContent(), Unit::getHudImage(), VSSprite::getTexture(), Cockpit::GetUnitModifications(), NO_MESH, showUnitStats(), and Texture::texfilename.
string buildUpgradeDescription | ( | Cargo & | item) |
Definition at line 4162 of file basecomputer.cpp.
References UnitFactory::createUnit(), current_unit_load_mode, DEFAULT, Cargo::description, Cargo::GetContent(), FactionUtil::GetUpgradeFaction(), NO_MESH, and showUnitStats().
Referenced by BaseComputer::updateTransactionControlsForSelection().
bool buyShip | ( | Unit * | baseUnit, |
Unit * | playerUnit, | ||
std::string | content, | ||
bool | myfleet, | ||
bool | force_base_inventory, | ||
BaseComputer * | bcomputer | ||
) |
Definition at line 4491 of file basecomputer.cpp.
References _Universe, Universe::AccessCockpit(), Universe::activeStarSystem(), StarSystem::AddUnit(), Subcmd::BuyShip, c, Window::close(), CreateCargoForOwnerStarshipName(), UnitFactory::createUnit(), Cockpit::credits, Unit::curr_physical_state, CurrentBaseUnitSet(), CurrentSaveGameName, Unit::faction, Unit::GetCargo(), Cargo::GetCategory(), Cargo::GetContent(), Unit::getFlightgroup(), UniverseUtil::GetMasterPartList(), Cockpit::GetNumUnits(), Cockpit::GetUnitFileName(), Cockpit::GetUnitModifications(), VegaConfig::getVariable(), i, j, k, Unit::Kill(), LOAD_FAILED, SaveGame::LoadSavedMissions(), BaseComputer::m_player, Cargo::mission, Universe::netLocked(), Network, Flightgroup::nr_ships, Flightgroup::nr_ships_left, Unit::numCargo(), XMLSupport::parse_bool(), UniverseUtil::playSound(), Transformation::position, Unit::Position(), Unit::prev_physical_state, Cargo::price, Cargo::quantity, QVector, Unit::RemoveCargo(), UniverseUtil::SafeEntrancePoint(), Cockpit::savegame, Cockpit::SetParent(), UnitContainer::SetUnit(), NetClient::shipRequest(), UniverseUtil::StopAllSounds(), SwapInNewShipName(), Subcmd::SwitchShip, SwitchUnits(), Unit::UnDock(), Vector, vs_config, WindowController::window(), and WriteSaveGame().
Referenced by BaseUtil::BuyShip().
|
static |
Definition at line 170 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::createCategoryCell().
Definition at line 4042 of file basecomputer.cpp.
References _Universe, Universe::activeStarSystem(), Cargo::category, Cargo::content, StarSystem::getFileName(), Universe::getJumpPath(), Cockpit::GetUnitBaseName(), Cockpit::GetUnitFileName(), Cockpit::GetUnitSystemName(), VegaConfig::getVariable(), StarSystemGent::jumps, Cockpit::MakeBaseName(), XMLSupport::parse_float(), Cargo::price, Cargo::quantity, Cargo::volume, vs_config, and VSFileSystem::vs_dprintf().
Referenced by CreateCargoForOwnerStarshipName(), and BaseComputer::loadShipDealerControls().
Cargo CreateCargoForOwnerStarshipName | ( | const Cockpit * | cockpit, |
const Unit * | base, | ||
std::string | name, | ||
int & | index | ||
) |
Definition at line 4090 of file basecomputer.cpp.
References CreateCargoForOwnerStarship(), Cockpit::GetNumUnits(), Cockpit::GetUnitFileName(), and i.
Referenced by buyShip().
void CurrentBaseUnitSet | ( | Unit * | un) |
Definition at line 1159 of file base_interface.cpp.
References BaseInterface::caller, BaseInterface::CurrentBase, and UnitContainer::SetUnit().
Referenced by buyShip().
|
static |
Definition at line 3036 of file basecomputer.cpp.
References VSFileSystem::homedir.
Referenced by BaseComputer::loadLoadSaveControls().
|
static |
Definition at line 184 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadBuyUpgradeControls(), BaseComputer::loadMissionsMasterList(), and BaseComputer::loadSellUpgradeControls().
|
static |
Definition at line 151 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
|
static |
Definition at line 2795 of file basecomputer.cpp.
References Unit::GetCargo(), i, Unit::numCargo(), Cargo::quantity, and Unit::RemoveCargo().
Referenced by BaseComputer::buySelectedCargo(), BaseComputer::draw(), BaseComputer::refresh(), and BaseComputer::sellSelectedCargo().
|
static |
Definition at line 4660 of file basecomputer.cpp.
References colorsToCommandString(), and FactionUtil::GetSparkColor().
Referenced by BaseComputer::showPlayerInfo().
|
static |
Definition at line 2951 of file basecomputer.cpp.
References UniverseUtil::getSaveInfo().
Referenced by BaseComputer::loadSavePickerChangedSelection().
std::string getDisplayCategory | ( | const Cargo & | cargo) |
Definition at line 115 of file basecomputer.cpp.
References Cargo::category, and Cargo::GetDescription().
Referenced by BaseComputer::loadListPicker(), and BaseComputer::scrollToItem().
Cargo* GetMasterPartList | ( | const char * | input_buffer) |
Definition at line 8519 of file unit_generic.cpp.
Referenced by Beam::Collide(), showUnitStats(), and BaseComputer::SellUpgradeOperation::start().
int GetModeFromName | ( | const char * | ) |
Definition at line 87 of file unit_xml.cpp.
Referenced by Unit::FilterDowngradeList(), showUnitStats(), BaseComputer::BuyUpgradeOperation::start(), Unit::Upgrade(), and UpgradeUnit().
Definition at line 37 of file unit_functions_generic.cpp.
Referenced by BaseComputer::UpgradeOperation::endInit(), UnitUtil::PercentOperational(), Unit::Repair(), and Unit::RepairUpgradeCargo().
Unit& GetUnitMasterPartList | ( | ) |
Definition at line 8366 of file unit_generic.cpp.
Referenced by GetMasterPartList(), UniverseUtil::getRandCargo(), getShipList(), Unit::ImportPartList(), and BaseComputer::loadSellUpgradeControls().
std::vector< std::string > getWeapFilterVec | ( | ) |
bool isWeapon | ( | std::string | name) |
Definition at line 8815 of file unit_generic.cpp.
Referenced by BaseComputer::buyUpgrade(), BaseComputer::configureUpgradeCommitControls(), UnitUtil::PercentOperational(), Unit::RepairUpgradeCargo(), and BaseComputer::sellUpgrade().
|
static |
Definition at line 163 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
Definition at line 4906 of file unit_generic.cpp.
References ClassCache< Typ, Key >::getCachedConst(), GetUnitDir(), LOAD_FAILED, makeBlankUpgrade(), Unit::name, and ClassCache< Typ, Key >::setCachedConst().
Referenced by Unit::ReduceToTemplate(), Unit::RepairUpgrade(), and BaseComputer::SellUpgradeOperation::start().
Definition at line 4921 of file unit_generic.cpp.
Referenced by UnitUtil::PercentOperational(), Unit::Repair(), Unit::RepairUpgrade(), Unit::RepairUpgradeCargo(), and BaseComputer::BuyUpgradeOperation::start().
string MakeUnitXMLPretty | ( | std::string | , |
Unit * | |||
) |
Referenced by NavigationSystem::DrawShip(), and BaseComputer::showShipStats().
|
static |
Definition at line 3798 of file basecomputer.cpp.
References c, i, and strtoupper().
Referenced by BaseComputer::SellUpgradeOperation::selectMount().
|
static |
Definition at line 175 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
|
static |
Definition at line 198 of file basecomputer.cpp.
Referenced by BaseComputer::BuyUpgradeOperation::selectMount().
|
static |
Definition at line 204 of file basecomputer.cpp.
Referenced by BaseComputer::BuyUpgradeOperation::selectMount(), and BaseComputer::SellUpgradeOperation::selectMount().
|
static |
Definition at line 192 of file basecomputer.cpp.
Referenced by BaseComputer::BuyUpgradeOperation::selectMount(), and BaseComputer::SellUpgradeOperation::selectMount().
|
inline |
|
inline |
|
static |
Definition at line 138 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
|
static |
Definition at line 157 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
|
static |
Definition at line 3018 of file basecomputer.cpp.
References VSFileSystem::homedir.
Referenced by BaseComputer::loadLoadSaveControls().
void prettyPrintFloat | ( | char * | buffer, |
float | f, | ||
int | digitsBefore, | ||
int | digitsAfter, | ||
int | bufferLen = 128 |
||
) |
Definition at line 4750 of file basecomputer.cpp.
References FINITE, float, i, int, and ISNAN.
Referenced by showUnitStats().
|
static |
Definition at line 145 of file basecomputer.cpp.
References getConfigColor().
Referenced by BaseComputer::loadListPicker().
Definition at line 7684 of file unit_generic.cpp.
References game_data_t::difficulty, and g_game.
Referenced by BaseComputer::configureUpgradeCommitControls(), Unit::RepairUpgradeCargo(), SellPrice(), and BaseComputer::updateTransactionControlsForSelection().
void RespawnNow | ( | Cockpit * | cockpit) |
Definition at line 1799 of file cockpit.cpp.
Referenced by BaseComputer::actionConfirmedLoadGame(), and UniverseUtil::loadGame().
Definition at line 110 of file docking.cpp.
Definition at line 397 of file basecomputer.cpp.
References RepairPrice(), and usedValue().
Referenced by BaseComputer::updateTransactionControlsForSelection().
bool sellShip | ( | Unit * | baseUnit, |
Unit * | playerUnit, | ||
std::string | shipname, | ||
BaseComputer * | bcomputer | ||
) |
Definition at line 4443 of file basecomputer.cpp.
References _Universe, Universe::activeStarSystem(), Cockpit::credits, Unit::GetCargo(), StarSystem::getFileName(), UniverseUtil::GetMasterPartList(), Cockpit::GetNumUnits(), Cockpit::GetUnitFileName(), Cockpit::GetUnitSystemName(), VegaConfig::getVariable(), i, Universe::isPlayerStarship(), BaseComputer::loadShipDealerControls(), Universe::netLocked(), Network, XMLSupport::parse_float(), Cargo::price, Cockpit::RemoveUnit(), Subcmd::SellShip, NetClient::shipRequest(), BaseComputer::updateTransactionControlsForSelection(), and vs_config.
Referenced by BaseComputer::sellShip(), and BaseUtil::SellShip().
Definition at line 4818 of file basecomputer.cpp.
References UniverseUtil::acos(), Unit::Limits::afterburn, Unit::armor, Armor::backleftbottom, Armor::backlefttop, Armor::backrightbottom, Armor::backrighttop, weapon_info::BALL, BASIC_REPAIR_NAME, weapon_info::BEAM, beautify(), weapon_info::BOLT, UnitImages< BOGUS >::cloakenergy, Unit::cloaking, Cargo::content, UnitFactory::createUnit(), weapon_info::Damage, Unit::UnitJump::damage, Unit::UnitJump::delay, Unit::UnitJump::drive, Unit::UnitJump::energy, weapon_info::EnergyRate, Unit::EnergyRechargeData(), Unit::Limits::forward, Armor::frontleftbottom, Armor::frontlefttop, Armor::frontrightbottom, Armor::frontrighttop, Unit::FuelData(), Cargo::GetContent(), Cargo::GetDescription(), Unit::getEmptyCargoVolume(), Unit::getEmptyUpgradeVolume(), FactionUtil::GetFactionIndex(), Unit::getFullname(), Unit::GetHull(), Unit::GetHullPercent(), Unit::GetJumpStatus(), Unit::GetMass(), GetMasterPartList(), GetModeFromName(), Unit::GetMoment(), Unit::GetNumMounts(), Unit::getSubUnits(), VegaConfig::getVariable(), Unit::GetWarpEnergy(), i, index, Unit::UnitJump::insysenergy, Unit::Computer::itts, Unit::Limits::lateral, Unit::limits, Unit::Computer::RADARLIM::lockcone, weapon_info::LockTime, weapon_info::Longrange, lookupMountSize(), Cargo::mass, Unit::Computer::max_ab_speed(), Unit::Computer::max_pitch_up, Unit::Computer::max_roll_right, Unit::Computer::max_speed(), Unit::Computer::max_yaw_right, Unit::Computer::RADARLIM::maxcone, Unit::MaxEnergyData(), Unit::Computer::RADARLIM::maxrange, GFXMatrices::model, Unit::mounts, Unit::name, Shield::number, XMLSupport::parse_bool(), XMLSupport::parse_float(), weapon_info::PhaseDamage, PI, Unit::pImage, Unit::Limits::pitch, PRETTY_ADD, PRETTY_ADDN, PRETTY_ADDU, prettyPrintFloat(), weapon_info::PROJECTILE, Unit::Computer::radar, weapon_info::Range, Shield::recharge, weapon_info::Refire(), Unit::Limits::retro, Unit::Limits::roll, Unit::shield, Shield::shield2fb, Shield::shield4fbrl, Shield::shield8, weapon_info::size, weapon_info::Speed, weapon_info::Stability, totalShieldEnergyCapacitance(), Unit::Computer::RADARLIM::trackingcone, weapon_info::type, Unit::Computer::RADARLIM::UseFriendFoe(), Unit::Computer::RADARLIM::UseThreatAssessment(), Unit::Limits::vertical, Unit::ViewComputerData(), Cargo::volume, vs_config, Unit::WarpCapData(), weapon_info::weapon_name, and Unit::Limits::yaw.
Referenced by buildShipDescription(), buildUpgradeDescription(), and BaseComputer::showShipStats().
void SwapInNewShipName | ( | Cockpit * | cockpit, |
Unit * | base, | ||
const std::string & | newFileName, | ||
int | swappingShipsIndex | ||
) |
Definition at line 4102 of file basecomputer.cpp.
References _Universe, Universe::activeStarSystem(), StarSystem::getFileName(), Cockpit::GetNumUnits(), Cockpit::GetParent(), Cockpit::GetUnitBaseName(), Cockpit::GetUnitFileName(), Cockpit::GetUnitSystemName(), i, Cockpit::MakeBaseName(), Unit::name, and Cockpit::RemoveUnit().
Referenced by buyShip().
Definition at line 328 of file cockpit_generic.cpp.
Referenced by buyShip(), Unit::EjectCargo(), GetFinalTurret(), SwitchUnitsTurret(), and Cockpit::Update().
void TerminateCurrentBase | ( | void | ) |
Definition at line 1151 of file base_interface.cpp.
Definition at line 3613 of file unit_generic.cpp.
References currentTotalShieldVal(), VegaConfig::getVariable(), XMLSupport::parse_bool(), XMLSupport::parse_float(), totalShieldVal(), and vs_config.
Referenced by Unit::EnergyData(), Unit::RegenShields(), and showUnitStats().
void trackPrice | ( | int | whichplayer, |
const Cargo & | item, | ||
float | price, | ||
const string & | systemName, | ||
const string & | baseName, | ||
vector< string > & | highest, | ||
vector< string > & | lowest | ||
) |
Definition at line 4199 of file basecomputer.cpp.
References Cargo::category, Cargo::content, getSaveData(), getStringList(), VegaConfig::getVariable(), i, index, mymin, XMLSupport::parse_int(), PRETTY_ADD, pushSaveData(), pushSaveString(), putSaveData(), saveDataList(), saveStringList(), vs_config, and VSFileSystem::vs_dprintf().
Referenced by buildCargoDescription().
Definition at line 86 of file basecomputer.cpp.
References a.
Referenced by BaseComputer::constructControls().
Definition at line 2380 of file basecomputer.cpp.
References Cargo::category, color_prohibited_upgrade_flag, Cargo::content, Unit::faction, Unit::GetCargo(), FactionUtil::GetFactionName(), i, UniverseUtil::LookupUnitStat(), Unit::name, Unit::numCargo(), and Cargo::quantity.
Referenced by BaseComputer::isTransactionOK().
bool upgradeNotAddedToCargo | ( | std::string | category) |
Definition at line 106 of file basecomputer.cpp.
References i, and weapfiltervec.
Referenced by BaseComputer::isTransactionOK().
|
static |
Definition at line 384 of file basecomputer.cpp.
Referenced by BaseComputer::SellUpgradeOperation::concludeTransaction(), SellPrice(), and BaseComputer::updateTransactionControlsForSelection().
vector< unsigned int > base_keyboard_queue |
Definition at line 94 of file base_interface.cpp.
Referenced by base_keyboard_cb(), BaseComputer::constructControls(), and BaseInterface::ProcessKeyboardBuffer().
const string BASIC_REPAIR_DESC |
Definition at line 259 of file basecomputer.cpp.
Referenced by BaseComputer::loadBuyUpgradeControls().
const string BASIC_REPAIR_NAME = "Basic Repair & Refuel" |
Definition at line 252 of file basecomputer.cpp.
Referenced by BaseComputer::buyUpgrade(), BaseComputer::loadBuyUpgradeControls(), showUnitStats(), and BaseComputer::updateTransactionControlsForSelection().
|
static |
Definition at line 127 of file basecomputer.cpp.
Referenced by BaseComputer::acceptMission(), BaseComputer::createCategoryCell(), BaseComputer::loadMissionsMasterList(), and BaseComputer::scrollToItem().
|
static |
Definition at line 129 of file basecomputer.cpp.
Referenced by BaseComputer::createCategoryCell(), and BaseComputer::pickerChangedSelection().
|
static |
Definition at line 134 of file basecomputer.cpp.
Referenced by BaseComputer::isTransactionOK(), and BaseComputer::loadListPicker().
|
static |
Definition at line 136 of file basecomputer.cpp.
Referenced by BaseComputer::isTransactionOK(), and BaseComputer::loadListPicker().
|
static |
Definition at line 135 of file basecomputer.cpp.
Referenced by BaseComputer::isTransactionOK(), and BaseComputer::loadListPicker().
|
static |
Definition at line 133 of file basecomputer.cpp.
Referenced by BaseComputer::loadListPicker(), and UpgradeAllowed().
|
static |
Definition at line 3473 of file basecomputer.cpp.
std::string CurrentSaveGameName |
Definition at line 31 of file savegame.cpp.
Referenced by buyShip(), GetCurrentSaveGame(), GetHelperPlayerSaveGame(), and SetCurrentSaveGame().
const char* DamagedCategory |
Definition at line 4970 of file unit_generic.cpp.
Referenced by Unit::DealDamageToHullReturnArmor(), UnitUtil::PercentOperational(), UnitUtil::RecomputeUnitUpgrades(), Unit::Repair(), Unit::RepairCost(), Unit::RepairUpgrade(), and Unit::RepairUpgradeCargo().
std::string emergency_downgrade_mode |
Definition at line 92 of file basecomputer.cpp.
Referenced by BaseComputer::configureUpgradeCommitControls(), BaseComputer::fixUpgrade(), and BaseComputer::recalcTitle().
|
static |
Definition at line 3471 of file basecomputer.cpp.
|
static |
Definition at line 3472 of file basecomputer.cpp.
|
static |
Definition at line 226 of file basecomputer.cpp.
Referenced by buyShip(), and BaseComputer::UpgradeOperation::endInit().
|
static |
Definition at line 213 of file basecomputer.cpp.
Referenced by BaseComputer::acceptMission(), and BaseComputer::loadMissionsMasterList().
|
static |
Definition at line 212 of file basecomputer.cpp.
Referenced by BaseComputer::acceptMission(), and BaseComputer::loadMissionsMasterList().
|
static |
Definition at line 211 of file basecomputer.cpp.
Referenced by BaseComputer::acceptMission(), and BaseComputer::loadMissionsMasterList().
|
static |
Definition at line 182 of file basecomputer.cpp.
Referenced by BaseComputer::createModeButtons().
|
static |
Definition at line 277 of file basecomputer.cpp.
|
static |
Definition at line 217 of file basecomputer.cpp.
Referenced by BaseComputer::loadNewsControls().
std::vector< std::string > weapfiltervec = getWeapFilterVec() |
Definition at line 105 of file basecomputer.cpp.
Referenced by getWeapFilterVec(), BaseComputer::loadSellUpgradeControls(), and upgradeNotAddedToCargo().
|
static |
Definition at line 4810 of file basecomputer.cpp.