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

MineField Class Reference

A mine field. More...

#include <MineField.h>

Inheritance diagram for MineField:

Inheritance graph
[legend]
Collaboration diagram for MineField:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MineField (int mineType, const Location &L, int num, Player *owner)
int GetNumMines () const
void AddMines (const Location &L, int n)
void Sweep (const Fleet *F)
void Decay (int numPlanets)
void ReduceFieldCollision ()
bool TestCollide (const Location &L, int warp)
bool CollisionPossible (const Location &L1, const Location &L2)
bool InField (int x, int y)
bool InField (const Location &L)
int GetMineType () const
double GetRadius () const
bool IsEmpty () const
virtual long GetCargoCapacity () const
virtual double GetMaxTachyon () const
virtual long GetScanPen () const
virtual long GetScanSpace () const
virtual bool CanLoadBy (const Player *) const
virtual void SetCanLoadBy (const Player *)
virtual long GetCloak (const Player *p, bool pen) const

Protected Member Functions

bool RectFilter (int x1, int y1, int x2, int y2)

Protected Attributes

deque< bool > mHadSeen
int mNumMines
int mMineType
PlayermOwner

Detailed Description

A mine field.

Mine fields are deployed by minelaying ships.

Definition at line 50 of file MineField.h.


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