Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BasicItem< Item > Class Template Reference

#include <ed_mapcomponent.h>

Inheritance diagram for BasicItem< Item >:
Inheritance graph
[legend]

Public Member Functions

 BasicItem (const Item *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 void display (Surface &s, const SPoint &pos) const =0
 
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 ()
 
virtual int place (const MapCoordinate &mc) const =0
 
void vPlace (const MapCoordinate &mc) const
 just a wrapper so we have a function return void More...
 
virtual Placeableclone () const =0
 
virtual bool remove (const MapCoordinate &mc) const
 

Static Public Member Functions

static int Width ()
 
static int Height ()
 

Protected Member Functions

SurfacegetClippingSurface () const
 
- Protected Member Functions inherited from MapComponent
int getPlayer () const
 

Protected Attributes

const Item * item
 
- Protected Attributes inherited from MapComponent
const MapItemTypemapItem
 

Static Protected Attributes

static Surface clippingSurface
 

Additional Inherited Members

- Static Public Attributes inherited from MapComponent
static const int fontHeight = 20
 

Detailed Description

template<class Item>
class BasicItem< Item >

Definition at line 75 of file ed_mapcomponent.h.

Constructor & Destructor Documentation

template<class Item>
BasicItem< Item >::BasicItem ( const Item *  i)
inline

Definition at line 81 of file ed_mapcomponent.h.

Member Function Documentation

template<class Item>
virtual int BasicItem< Item >::displayHeight ( ) const
inlinevirtual

Implements MapComponent.

Definition at line 85 of file ed_mapcomponent.h.

template<class Item>
virtual int BasicItem< Item >::displayWidth ( ) const
inlinevirtual

Implements MapComponent.

Definition at line 83 of file ed_mapcomponent.h.

template<class Item>
Surface& BasicItem< Item >::getClippingSurface ( ) const
inlineprotectedvirtual

Implements MapComponent.

Definition at line 79 of file ed_mapcomponent.h.

template<class Item>
virtual int BasicItem< Item >::getID ( ) const
inlinevirtual

Definition at line 87 of file ed_mapcomponent.h.

template<class Item>
ASCString BasicItem< Item >::getName ( ) const
inlinevirtual

Reimplemented from MapComponent.

Definition at line 82 of file ed_mapcomponent.h.

template<class Item>
static int BasicItem< Item >::Height ( )
inlinestatic

Definition at line 86 of file ed_mapcomponent.h.

Referenced by BasicItem< ObjectType >::displayHeight().

template<class Item>
static int BasicItem< Item >::Width ( )
inlinestatic

Definition at line 84 of file ed_mapcomponent.h.

Referenced by BasicItem< ObjectType >::displayWidth().

Member Data Documentation

template<class Item>
Surface BasicItem< T >::clippingSurface
staticprotected

Definition at line 78 of file ed_mapcomponent.h.

Referenced by BasicItem< ObjectType >::getClippingSurface().

template<class Item>
const Item* BasicItem< Item >::item
protected

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