MineType Class Reference

#include <objects.h>

Inheritance diagram for MineType:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int getID () const
 MineType (MineTypes t)
 MineType (const MineType &w)
ASCString getName () const
void paint (Surface &surface, const SPoint &pos) const

Static Public Member Functions

static void paint (MineTypes type, int player, Surface &surf, const SPoint &pos)

Public Attributes

int id
vector< int > secondaryIDs
 not really used for minetypes.
ASCString name
ASCString location

Detailed Description

Definition at line 72 of file objects.h.


Constructor & Destructor Documentation

MineType::MineType ( MineTypes  t  )  [inline]

Definition at line 85 of file objects.h.

MineType::MineType ( const MineType w  )  [inline]

Definition at line 86 of file objects.h.


Member Function Documentation

int MineType::getID (  )  const [inline, virtual]

Implements MapItemType.

Definition at line 83 of file objects.h.

References id.

ASCString MineType::getName (  )  const [inline, virtual]

Implements MapItemType.

Definition at line 87 of file objects.h.

References MineNames.

void MineType::paint ( Surface surface,
const SPoint pos 
) const

Definition at line 41 of file objects.cpp.

Referenced by MineItem::display(), and Mine::paint().

void MineType::paint ( MineTypes  type,
int  player,
Surface surf,
const SPoint pos 
) [static]

Definition at line 46 of file objects.cpp.

References cmantipersonnelmine, cmantitankmine, cmfloatmine, cmmooredmine, IconRepository::getIcon(), and nullParam.


Member Data Documentation

int MineType::id

Definition at line 75 of file objects.h.

Referenced by getID(), mineComp(), and MineItem::place().

vector<int> MineType::secondaryIDs

not really used for minetypes.

Definition at line 78 of file objects.h.

ASCString MineType::name

Definition at line 80 of file objects.h.

ASCString MineType::location

Definition at line 81 of file objects.h.


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:04 2012 for Advanced Strategic Command by  doxygen 1.5.1