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

#include <ed_mapcomponent.h>

Inheritance diagram for TerrainItem:
Inheritance graph
[legend]

Public Member Functions

 TerrainItem (const TerrainType *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< TerrainType >
 BasicItem (const TerrainType *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< TerrainType >
static int Width ()
 
static int Height ()
 
- Static Public Attributes inherited from MapComponent
static const int fontHeight = 20
 
- Protected Member Functions inherited from BasicItem< TerrainType >
SurfacegetClippingSurface () const
 
- Protected Member Functions inherited from MapComponent
int getPlayer () const
 
- Protected Attributes inherited from BasicItem< TerrainType >
const TerrainTypeitem
 
- Protected Attributes inherited from MapComponent
const MapItemTypemapItem
 
- Static Protected Attributes inherited from BasicItem< TerrainType >
static Surface clippingSurface
 

Detailed Description

Definition at line 146 of file ed_mapcomponent.h.

Constructor & Destructor Documentation

TerrainItem::TerrainItem ( const TerrainType object)
inline

Definition at line 148 of file ed_mapcomponent.h.

Referenced by clone().

Member Function Documentation

virtual MapComponent* TerrainItem::clone ( ) const
inlinevirtual

Implements Placeable.

Definition at line 151 of file ed_mapcomponent.h.

References BasicItem< TerrainType >::item, and TerrainItem().

virtual void TerrainItem::display ( Surface s,
const SPoint pos 
) const
inlinevirtual
int TerrainItem::place ( const MapCoordinate mc) const
virtual

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