Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <images.h>
Public Member Functions | |
Cargo () | |
Cargo (std::string name, std::string cc, float pp, int qq, float mm, float vv, float func, float maxfunc) | |
Cargo (std::string name, std::string cc, float pp, int qq, float mm, float vv) | |
float | GetFunctionality () |
float | GetMaxFunctionality () |
void | SetFunctionality (float func) |
void | SetMaxFunctionality (float func) |
void | SetMissionFlag (bool flag) |
void | SetPrice (float price) |
void | SetMass (float mass) |
void | SetVolume (float vol) |
void | SetQuantity (int quantity) |
void | SetContent (const std::string &content) |
void | SetCategory (const std::string &category) |
bool | GetMissionFlag () const |
const std::string & | GetCategory () const |
const std::string & | GetContent () const |
const std::string & | GetDescription () const |
std::string | GetCategoryPython () |
std::string | GetContentPython () |
std::string | GetDescriptionPython () |
int | GetQuantity () const |
float | GetVolume () const |
float | GetMass () const |
float | GetPrice () const |
bool | operator== (const Cargo &other) const |
bool | operator< (const Cargo &other) const |
|
inline |
Definition at line 145 of file images.h.
References functionality, installed, mass, maxfunctionality, mission, price, quantity, and volume.
|
inline |
Definition at line 155 of file images.h.
References functionality, installed, mass, maxfunctionality, mission, price, quantity, and volume.
|
inline |
Definition at line 228 of file images.h.
References category.
Referenced by BaseComputer::acceptMission(), buildShipDescription(), BaseComputer::buyShip(), buyShip(), cargoIsUpgrade(), Beam::Collide(), BaseComputer::configureUpgradeCommitControls(), Unit::DealDamageToHullReturnArmor(), Unit::EjectCargo(), Enslave(), FireKeyboard::Execute(), Pilot::getAnger(), GetCategoryPython(), BaseComputer::isTransactionOK(), BaseComputer::loadMasterList(), CatCompare::operator()(), UnitUtil::RecomputeUnitUpgrades(), Unit::Repair(), Unit::RepairCost(), Unit::RepairUpgrade(), Unit::RepairUpgradeCargo(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().
|
inline |
Definition at line 240 of file images.h.
References GetCategory().
|
inline |
Definition at line 232 of file images.h.
References content.
Referenced by BaseComputer::acceptMission(), Unit::AddCargo(), NetServer::addUnitCargoSnapshot(), buildShipDescription(), buildUpgradeDescription(), BaseComputer::buyShip(), buyShip(), CargoToString(), GetContentPython(), UniverseUtil::getRandCargo(), UnitUtil::RecomputeUnitUpgrades(), Unit::RemoveCargo(), Unit::Repair(), Unit::RepairUpgradeCargo(), showUnitStats(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().
|
inline |
Definition at line 244 of file images.h.
References GetContent().
|
inline |
Definition at line 236 of file images.h.
References description.
Referenced by GetDescriptionPython(), getDisplayCategory(), BaseComputer::loadMissionsMasterList(), CargoColorSort::operator()(), showUnitStats(), and BaseComputer::updateTransactionControlsForSelection().
|
inline |
Definition at line 248 of file images.h.
References GetDescription().
|
inline |
Definition at line 179 of file images.h.
References functionality.
|
inline |
Definition at line 260 of file images.h.
References mass.
Referenced by NetServer::addUnitCargoSnapshot().
|
inline |
Definition at line 183 of file images.h.
References maxfunctionality.
|
inline |
Definition at line 224 of file images.h.
References mission.
Referenced by NetServer::addUnitCargoSnapshot().
|
inline |
Definition at line 264 of file images.h.
References price.
Referenced by NetServer::addUnitCargoSnapshot().
|
inline |
Definition at line 252 of file images.h.
References quantity.
Referenced by NetServer::addUnitCargoSnapshot().
|
inline |
Definition at line 256 of file images.h.
References volume.
Referenced by NetServer::addUnitCargoSnapshot().
|
inline |
|
inline |
|
inline |
Definition at line 187 of file images.h.
References functionality.
|
inline |
|
inline |
Definition at line 191 of file images.h.
References maxfunctionality.
|
inline |
|
inline |
|
inline |
|
inline |
StringPool::Reference Cargo::category |
Definition at line 135 of file images.h.
Referenced by BaseComputer::acceptMission(), AddCarg(), BaseComputer::buyUpgrade(), BaseComputer::configureUpgradeCommitControls(), CreateCargoForOwnerStarship(), Unit::DealDamageToHullReturnArmor(), GetCategory(), getDisplayCategory(), Unit::GetSortedCargoCat(), Unit::ImportPartList(), BaseComputer::isTransactionOK(), BaseComputer::loadListPicker(), BaseComputer::loadMasterList(), BaseComputer::loadMissionsMasterList(), Unit::makeMasterPartList(), CargoColorSort::operator()(), operator<(), Unit::Repair(), Unit::RepairUpgrade(), Unit::RepairUpgradeCargo(), BaseComputer::sellUpgrade(), SetCategory(), trackPrice(), UpdateMasterPartList(), BaseComputer::updateTransactionControlsForSelection(), and UpgradeAllowed().
StringPool::Reference Cargo::content |
Definition at line 134 of file images.h.
Referenced by BaseComputer::acceptMission(), AddCarg(), Arrested(), BaseComputer::buySelectedCargo(), BaseComputer::buyUpgrade(), Beam::Collide(), BaseComputer::configureUpgradeCommitControls(), CreateCargoForOwnerStarship(), Unit::EjectCargo(), Enslave(), BaseComputer::fixUpgrade(), Unit::GetCargo(), GetContent(), Unit::GetSortedCargoCat(), InList(), BaseComputer::loadBuyUpgradeControls(), BaseComputer::loadListPicker(), BaseComputer::loadMissionsMasterList(), Unit::makeMasterPartList(), operator<(), operator==(), Unit::PriceCargo(), UnitUtil::RecomputeUnitUpgrades(), Unit::Repair(), Unit::RepairUpgradeCargo(), BaseComputer::scrollToItem(), Unit::SellCargo(), BaseComputer::sellSelectedCargo(), BaseComputer::sellShip(), BaseComputer::sellUpgrade(), SetContent(), showUnitStats(), trackPrice(), CommunicatingAI::UpdateContrabandSearch(), UpdateMasterPartList(), BaseComputer::updateTransactionControlsForSelection(), and UpgradeAllowed().
StringPool::Reference Cargo::description |
Definition at line 136 of file images.h.
Referenced by AddCarg(), buildUpgradeDescription(), GetDescription(), BaseComputer::loadBuyUpgradeControls(), BaseComputer::loadMissionsMasterList(), Unit::makeMasterPartList(), UpdateMasterPartList(), and BaseComputer::updateTransactionControlsForSelection().
float Cargo::functionality |
Definition at line 143 of file images.h.
Referenced by AddCarg(), Cargo(), GetFunctionality(), SetFunctionality(), and Unit::WriteUnitString().
bool Cargo::installed |
Definition at line 142 of file images.h.
Referenced by AddCarg(), Cargo(), Unit::Upgrade(), and Unit::WriteUnitString().
float Cargo::mass |
Definition at line 139 of file images.h.
Referenced by AddCarg(), Unit::AddCargo(), Cargo(), CargoToString(), Unit::EjectCargo(), GetMass(), Unit::makeMasterPartList(), Unit::RemoveCargo(), SetMass(), showUnitStats(), UpdateMasterPartList(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().
float Cargo::maxfunctionality |
Definition at line 144 of file images.h.
Referenced by AddCarg(), Cargo(), GetMaxFunctionality(), SetMaxFunctionality(), and Unit::WriteUnitString().
bool Cargo::mission |
Definition at line 141 of file images.h.
Referenced by AddCarg(), Unit::AddCargo(), buyShip(), Cargo(), CargoToString(), BaseComputer::configureCargoCommitControls(), Unit::EjectCargo(), FireKeyboard::Execute(), GetMissionFlag(), BaseComputer::isTransactionOK(), BaseComputer::loadListPicker(), Unit::RemoveCargo(), BaseComputer::sellSelectedCargo(), SetMissionFlag(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().
float Cargo::price |
Definition at line 138 of file images.h.
Referenced by AddCarg(), Unit::AddCargo(), Unit::BuyCargo(), buyShip(), Cargo(), CargoToString(), BaseComputer::configureCargoCommitControls(), CreateCargoForOwnerStarship(), UnitUtil::decrementCargo(), GetPrice(), Unit::ImportPartList(), UnitUtil::incrementCargo(), BaseComputer::isTransactionOK(), BaseComputer::loadBuyUpgradeControls(), BaseComputer::loadMissionsMasterList(), Unit::makeMasterPartList(), BaseComputer::maxQuantityForPlayer(), Unit::RemoveCargo(), Unit::RepairUpgradeCargo(), Unit::SellCargo(), sellShip(), SetPrice(), UpdateMasterPartList(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().
int Cargo::quantity |
Definition at line 137 of file images.h.
Referenced by AddCarg(), UnitUtil::addCargo(), Unit::AddCargo(), Arrested(), basecargoassets(), Unit::BuyCargo(), BaseComputer::buySelectedCargo(), buyShip(), Unit::CanAddCargo(), Cargo(), CargoToString(), Beam::Collide(), BaseComputer::configureCargoCommitControls(), CreateCargoForOwnerStarship(), Unit::EjectCargo(), eliminateZeroCargo(), Enslave(), UnitUtil::forceAddCargo(), Pilot::getAnger(), UnitUtil::GetCargo(), UnitUtil::GetCargoIndex(), GetQuantity(), UniverseUtil::getRandCargo(), UnitUtil::hasCargo(), Unit::ImportPartList(), InList(), BaseComputer::isTransactionOK(), BaseComputer::loadListPicker(), BaseComputer::loadMasterList(), BaseComputer::loadMissionsMasterList(), makeBlankUpgrade(), Unit::makeMasterPartList(), UnitUtil::RecomputeUnitUpgrades(), Unit::RemoveCargo(), Unit::SellCargo(), BaseComputer::sellSelectedCargo(), SetQuantity(), BaseComputer::BuyUpgradeOperation::start(), CommunicatingAI::UpdateContrabandSearch(), UpdateMasterPartList(), UpgradeAllowed(), and Unit::WriteUnitString().
float Cargo::volume |
Definition at line 140 of file images.h.
Referenced by AddCarg(), Unit::AddCargo(), Unit::CanAddCargo(), Cargo(), CargoToString(), CreateCargoForOwnerStarship(), Unit::EjectCargo(), GetVolume(), Unit::makeMasterPartList(), BaseComputer::maxQuantityForPlayer(), Unit::RemoveCargo(), SetVolume(), showUnitStats(), UpdateMasterPartList(), BaseComputer::updateTransactionControlsForSelection(), and Unit::WriteUnitString().