#include <Component.h>
Inheritance diagram for Component:


Public Member Functions | |
| const Cost & | GetCost () const |
| Cost | GetCost (const Player *owner) const |
| long | GetID () const |
| ComponentType | GetType () const |
| bool | IsType (ComponentType ct) const |
| const string | GetName () const |
| HullType | GetHullType () const |
| long | GetTech (TechType tt) const |
| long | GetMass () const |
| long | GetArmor () const |
| long | GetShield () const |
| long | GetWeaponType () const |
| long | GetPower () const |
| long | GetRange () const |
| long | GetInit () const |
| double | GetAccuracy () const |
| long | GetBombType () const |
| double | GetKillper () const |
| double | GetNormalKillper () const |
| double | GetSmartKillper () const |
| long | GetMinKill () const |
| long | GetInstKill () const |
| long | GetCloaking () const |
| double | GetCompPower () const |
| double | GetJamming () const |
| long | GetInitAdj () const |
| double | GetCapacitors () const |
| double | GetDeflection () const |
| double | GetTachyon () const |
| bool | CanColonize () const |
| long | GetCargoCapacity () const |
| long | GetFuelCapacity () const |
| long | GetFuelGen () const |
| double | GetRepairRate () const |
| double | GetSpeedBonus () const |
| long | GetMineType () const |
| long | GetMineAmount () const |
| long | GetMines () const |
| long | GetRemTerra () const |
| long | GetGateMass () const |
| long | GetGateRange () const |
| long | GetDriverSpeed () const |
| long | GetScanSpace () const |
| long | GetScanPen () const |
| bool | CanStealShip () const |
| bool | CanStealPlanet () const |
| long | GetTerraType () const |
| long | GetTerraLimit () const |
| double | GetDefPower () const |
| long | GetSweeping (long RangeBonus) const |
| long | GetTerraPower () const |
| long | GetARMaxPop () const |
| long | GetDock () const |
| bool | CanRefuel () const |
| double | GetDampener () const |
| double | GetFuelUsage (unsigned long speed) const |
| long | GetRadiation () const |
| long | GetSafeSpeed () const |
| long | GetMaxSpeed () const |
| long | GetBattleSpeed () const |
| long | GetFreeSpeed () const |
| bool | CanJumpGate () const |
| bool | CanNormalBomb () const |
| bool | CanSmartBomb () const |
| bool | CanTerraBomb () const |
| long | GetValueType () const |
| bool | IsBuildable (const Player *player) const |
Static Public Member Functions | |
| static void | Cleanup () |
| static bool | LoadComponents (const TiXmlNode *comps, deque< Component * > &CompList) |
| static HullType | ParseHullType (const char *ptr) |
| static ComponentType | ParseCompType (const char *ptr) |
| static long | GetScore (const Component *check, long ValueType) |
| static const Cost * | DefenseCost () |
| static const Cost * | ScannerCost () |
| static const Component * | T0Defense () |
| static const Component * | T0PlanetScanner () |
| static long | ParseSubType (const char *ptr, bool insert) |
| static const Component * | Upgrade (const Player *player) |
Private Member Functions | |
| void | init () |
Private Attributes | |
| long | ID |
| string | Name |
| ComponentType | Type |
| Cost | mCost |
| deque< long > | Tech |
| long | Mass |
| bool | MTGift |
| long | Armor |
| long | Shield |
| long | WeaponType |
| long | Power |
| long | Range |
| long | Init |
| double | Accuracy |
| long | BombType |
| double | Killper |
| long | MinKill |
| long | InstKill |
| long | Cloaking |
| double | CompPower |
| double | Jamming |
| long | InitAdj |
| double | Capacitors |
| double | Deflection |
| double | Tachyon |
| double | Dampener |
| bool | Colonize |
| long | CargoCapacity |
| long | FuelCapacity |
| long | FuelGen |
| double | RepairRate |
| double | SpeedBonus |
| deque< double > | FuelUsage |
| long | Radiation |
| long | SafeSpeed |
| long | MaxSpeed |
| long | BattleSpeed |
| long | FreeSpeed |
| long | MineType |
| long | MineAmount |
| long | Mines |
| long | RemTerra |
| long | TerraPower |
| long | GateMass |
| long | GateRange |
| long | DriverSpeed |
| bool | JumpGate |
| long | ScanSpace |
| long | ScanPen |
| bool | StealShip |
| bool | StealPlanet |
| long | TerraType |
| long | TerraLimit |
| double | DefPower |
| bool | Refuel |
| long | Dock |
| long | ARMaxPop |
| bool | PlanetReset |
| HullType | mHullType |
| deque< const RacialTrait * > | PRTNeeded |
| deque< const RacialTrait * > | PRTDenied |
| deque< const RacialTrait * > | LRTNeeded |
| deque< const RacialTrait * > | LRTDenied |
| deque< long > | SubTypeIndex |
| deque< long > | SubTypeValue |
Static Private Attributes | |
| static long | MaxID = 1 |
| static deque< string > | Subtypes |
| static Cost * | mDefenseCost = NULL |
| static Cost * | mScannerCost = NULL |
A component is a piece of modular equipment that is fit to a ship. Components modify ship characteristics and capabilities.
Definition at line 82 of file Component.h.
1.4.2-20050421