#include <Battle.h>
Inheritance diagram for Battle:
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 Stack * | GetTarget (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 |
Planet * | mBPlanet |
bool | mBaseFight |
TiXmlElement * | bReport |
deque< bSlot > | mSlots |
Static Protected Attributes | |
static long ** | StartX = NULL |
static long ** | StartY = NULL |
Classes | |
class | bSlot |
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.