Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

Fleet Class Reference

A group of stacks. More...

#include <Fleet.h>

Inheritance diagram for Fleet:

Inheritance graph
[legend]
Collaboration diagram for Fleet:

Collaboration graph
[legend]
List of all members.

Public Types

enum  FuncType {
  FTScrap = 1, FTUnload0 = 2, FTColonize0 = 3, FTLoad0 = 4,
  FTMove = 5, FTRemoteMine = 6, FTFreighterReproduction = 7, FTCheckWaypoint = 8,
  FTRefuel = 9, FTUnload1 = 10, FTColonize1 = 11, FTLoad1 = 12,
  FTMerge = 13, FTClearWaypoint = 14, FTRemoteTerraform = 15, FTRepair = 16
}

Public Member Functions

 Fleet (int id, const CargoHolder &loc)
void Init ()
virtual bool ParseNode (const TiXmlNode *node, Player *player, bool other)
virtual TiXmlNode * WriteNode (TiXmlNode *node, const Player *viewer) const
virtual const string GetName (const Player *viewer) const
long GetFuel () const
long GetFuelNeeded () const
void AdjustFuel (long amount)
void Refuel ()
void Refuel (const Planet *p)
void SetName (const char *n)
bool Process (FuncType func, bool arg)
void Scrap (bool colonize)
void KillFleet ()
void ProcessTransport (bool load, bool dunnage)
void Colonize ()
void RemoteMine (bool ARmining)
bool Move ()
void FreighterReproduction ()
bool Move1LY (Location &dest, long speed)
void CheckWaypoint ()
void ClearWaypoint ()
void CheckMerge ()
void RemoteTerraform (bool bomb)
void Repair ()
PlanetInOrbit () const
virtual long GetCloak (const Player *, bool) const
void MergeTo (Fleet *to)
void MergeTo (Fleet *to, const Ship *design, long number, long damaged)
bool IsEmpty () const
const deque< WayOrder * > GetOrders () const
const WayOrderGetFirstOrder ()
void SetStartOrders (Planet *planet)
void SetNextRoute (Planet *planet)
long GetBestSpeed (const Location *L1, const Location *L2, OrderType ot)
void ChangeWaypoints (WayOrderList &wol)
void SetRepeat (bool repeat)
bool GetRepeat () const
void SetBattlePlan (long bp)
void AddChaser (unsigned long p, unsigned long f)
void TakeMinefieldDamage (MineField *field)
void SetSeenDesign (long p, bool seen, bool design)
virtual void ResetSeen ()
virtual void SetSeenBy (long p, bool seen)
virtual void SetCanLoadBy (const Player *player)
virtual bool CanLoadBy (const Player *player) const
long TechLevel (TechType tech) const
const CostGetCost () const
long GetCloaking () const
virtual bool CanStealShip () const
virtual bool CanStealPlanet () const
long GetCargoCapacity () const
long GetScanPen () const
long GetScanSpace () const
long GetFuelCapacity () const
long GetFuelGen () const
long GetMass () const
long GetMaxMass () const
double GetMaxTachyon () const
long GetSweeping () const
long GetMines () const
double GetMaxDampener () const
double GetMaxRepairRate () const
bool DoesRadiate (HabType ht) const
double RadDamage () const
bool CanColonize () const
long GetTerraPower (long type) const
long GetMineAmount (long type) const
double GetFuelUsage (long speed) const
long GetMinSafeSpeed () const
long GetMinMaxSpeed () const
long GetMinFreeSpeed () const
long GetMinBattleSpeed () const
bool CanShoot () const
bool CanNormalBomb () const
bool CanSmartBomb () const
bool CanTerraBomb () const
bool CanJumpGate () const
bool CanBomb () const
void AddShips (long Type, long number)
bool AlreadyFought () const
void SetAlreadyFought ()
const BattlePlanGetBattlePlan () const
void SetInBattle (bool in)
bool GetInBattle () const
long GetShipCount () const
bool KillShips (long i, long count, bool salvage)
double GetNormalKillper () const
long GetMinKill () const
long GetInstKill () const

Private Member Functions

void Merge (Stack &stack, long number, long damaged, long Origin)
void AddChaser (const deque< Chaser > &w2)
void ResetDefaults ()

Private Attributes

long mFuel
string mName
deque< StackmStacks
long mRepairRate
long mBattlePlan
bool mAlreadyFought
bool mInBattle
bool mHasMoved
long mDistMoved
Location mStartPos
double mPX
double mPY
bool mDoneWaypoint
deque< WayOrder * > mOrders
bool mRepeatOrders
const FleetmChasing
deque< Chaser > mChasers
deque< MineField * > mPossibleMines
deque< bool > mCanLoadBy
Cost CVCost
long ReCost
long CVScanPen
long CVScanSpace
long CVCloaking
long CVFuelCapacity
long CVFuelGen
long CVMass
long CVMaxMass
bool CCalcMaxMass
double CVMaxTachyon
bool CCalcMaxTachyon
long CVCargoCapacity
long CVMines
long CVSweeping
double CVMaxDampener
bool CCalcMaxDampener
double CVMaxRepairRate
bool CCalcMaxRepairRate
long CVMinSafeSpeed
long CVMinMaxSpeed
long CVMinFreeSpeed
long CVMinBattleSpeed
long CVColonize
long CVStealShip
long CVStealPlanet
long CVShoot
long CVNormalBomb
long CVSmartBomb
long CVTerraBomb
double CVNormalKillper
bool CCalcNormalKillper
long CVMinKill
long CVInstKill
long CVJumpGate
deque< long > CVTechLevel
deque< long > CVMineAmount
deque< long > CVRadiation

Friends

class WayOrder
class Battle
class Bombing

Classes

class  Chaser

Detailed Description

A group of stacks.

Definition at line 55 of file Fleet.h.


The documentation for this class was generated from the following files:
Generated on Mon Aug 8 21:34:48 2005 for Freestars by  doxygen 1.4.2-20050421