Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Classes | |
class | BaseComputer |
struct | BaseComputer::TransactionList |
class | BaseComputer::LoadSaveQuitConfirm |
Functions | |
bool | buyShip (Unit *base, Unit *player, std::string, bool myfleet, bool force_base_inventory, BaseComputer *) |
bool | sellShip (Unit *base, Unit *player, std::string, BaseComputer *) |
bool buyShip | ( | Unit * | base, |
Unit * | player, | ||
std::string | , | ||
bool | myfleet, | ||
bool | force_base_inventory, | ||
BaseComputer * | |||
) |
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().
bool sellShip | ( | Unit * | base, |
Unit * | player, | ||
std::string | , | ||
BaseComputer * | |||
) |
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().