Advanced Strategic Command
Public Member Functions | List of all members
MineItem Class Reference

#include <ed_mapcomponent.h>

Inheritance diagram for MineItem:
Inheritance graph
[legend]

Public Member Functions

 MineItem (const MineType *object)
 
virtual int place (const MapCoordinate &mc) const
 
virtual void display (Surface &s, const SPoint &pos) const
 
virtual MapComponentclone () const
 
- Public Member Functions inherited from BasicItem< MineType >
 BasicItem (const MineType *i)
 
ASCString getName () const
 
virtual int displayWidth () const
 
virtual int displayHeight () const
 
virtual int getID () const
 
- Public Member Functions inherited from MapComponent
 MapComponent (const MapItemType *item)
 
const MapItemTypegetItemType () const
 
virtual bool supportMultiFieldPlacement () const
 
void displayClip (PG_Widget *parent, SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) const
 
- Public Member Functions inherited from Placeable
virtual ~Placeable ()
 
void vPlace (const MapCoordinate &mc) const
 just a wrapper so we have a function return void More...
 
virtual bool remove (const MapCoordinate &mc) const
 

Additional Inherited Members

- Static Public Member Functions inherited from BasicItem< MineType >
static int Width ()
 
static int Height ()
 
- Static Public Attributes inherited from MapComponent
static const int fontHeight = 20
 
- Protected Member Functions inherited from BasicItem< MineType >
SurfacegetClippingSurface () const
 
- Protected Member Functions inherited from MapComponent
int getPlayer () const
 
- Protected Attributes inherited from BasicItem< MineType >
const MineTypeitem
 
- Protected Attributes inherited from MapComponent
const MapItemTypemapItem
 
- Static Protected Attributes inherited from BasicItem< MineType >
static Surface clippingSurface
 

Detailed Description

Definition at line 162 of file ed_mapcomponent.h.

Constructor & Destructor Documentation

MineItem::MineItem ( const MineType object)
inline

Definition at line 164 of file ed_mapcomponent.h.

Referenced by clone().

Member Function Documentation

virtual MapComponent* MineItem::clone ( ) const
inlinevirtual

Implements Placeable.

Definition at line 167 of file ed_mapcomponent.h.

References BasicItem< MineType >::item, and MineItem().

virtual void MineItem::display ( Surface s,
const SPoint pos 
) const
inlinevirtual

Implements MapComponent.

Definition at line 166 of file ed_mapcomponent.h.

References BasicItem< MineType >::item, and MineType::paint().

int MineItem::place ( const MapCoordinate mc) const
virtual

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