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

Battle Class Reference

Battle. More...

#include <Battle.h>

Inheritance diagram for Battle:

Inheritance graph
[legend]
Collaboration diagram for Battle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Battle (const Location &loc)
void AddFleet (Fleet *fleet)
void SetPlanet (Planet *planet)
void AddFleets ()
void Resolve ()

Static Public Member Functions

static void SetStartPos ()
static void Cleanup ()

Protected Member Functions

long GetRange (const Stack *s1, const Stack *s2, int dx=0, int dy=0) const
bool FightRound ()
long GetSpeed (long speed, long round)
bool MoveStack (long j)
long PotentialDamage (const Stack *shoot, const Stack *target, long Range, const Slot *slot, bool Gatling=false) const
const StackGetTarget (const Stack *hunter, HullType hc, long Range, const Slot *slot) const
void ShootSlot (bSlot &shooter)

Static Protected Member Functions

static bool HighInit (const bSlot &s1, const bSlot &s2)

Protected Attributes

long mRound
deque< Fleet * > mThere
deque< Stack * > mFighting
deque< Slot * > mFireOrder
PlanetmBPlanet
bool mBaseFight
TiXmlElement * bReport
deque< bSlot > mSlots

Static Protected Attributes

static long ** StartX = NULL
static long ** StartY = NULL

Classes

class  bSlot

Detailed Description

Battle.

A battle happens when two or more hostile players (or ships with hostile orders) are in the same location.

Definition at line 39 of file Battle.h.


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