Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MineType Class Reference

#include <objects.h>

Inheritance diagram for MineType:
Inheritance graph
[legend]

Public Member Functions

int getID () const
 
 MineType (MineTypes t)
 
 MineType (const MineType &w)
 
ASCString getName () const
 
void paint (Surface &surface, const SPoint &pos) const
 
- Public Member Functions inherited from MapItemType
virtual ~MapItemType ()
 

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. More...
 
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
inlinevirtual

Implements MapItemType.

Definition at line 83 of file objects.h.

References id.

ASCString MineType::getName ( ) const
inlinevirtual

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

Member Data Documentation

int MineType::id

Definition at line 75 of file objects.h.

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

ASCString MineType::location

Definition at line 81 of file objects.h.

ASCString MineType::name

Definition at line 80 of file objects.h.

vector<int> MineType::secondaryIDs

not really used for minetypes.

Definition at line 78 of file objects.h.


The documentation for this class was generated from the following files: