Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
BuildingItem Class Reference

#include <ed_mapcomponent.h>

Inheritance diagram for BuildingItem:
Inheritance graph

Public Member Functions

 BuildingItem (const BuildingType *building)
ASCString getName () const
virtual int displayWidth () const
virtual int displayHeight () const
virtual bool supportMultiFieldPlacement () const
virtual int place (const MapCoordinate &mc) const
virtual void display (Surface &s, const SPoint &pos) const
virtual MapComponentclone () const
virtual int getID () const
- Public Member Functions inherited from MapComponent
 MapComponent (const MapItemType *item)
const MapItemTypegetItemType () 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

Static Public Member Functions

static int Width ()
static int Height ()

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 107 of file ed_mapcomponent.h.

Constructor & Destructor Documentation

BuildingItem::BuildingItem ( const BuildingType building)

Definition at line 114 of file ed_mapcomponent.h.

Referenced by clone().

Member Function Documentation

virtual MapComponent* BuildingItem::clone ( ) const

Implements Placeable.

Definition at line 123 of file ed_mapcomponent.h.

References BuildingItem().

void BuildingItem::display ( Surface s,
const SPoint pos 
) const
virtual int BuildingItem::displayHeight ( ) const

Implements MapComponent.

Definition at line 118 of file ed_mapcomponent.h.

References Height().

Referenced by display().

virtual int BuildingItem::displayWidth ( ) const

Implements MapComponent.

Definition at line 116 of file ed_mapcomponent.h.

References Width().

Referenced by display().

Surface& BuildingItem::getClippingSurface ( ) const

Implements MapComponent.

Definition at line 112 of file ed_mapcomponent.h.

virtual int BuildingItem::getID ( ) const

Definition at line 124 of file ed_mapcomponent.h.

References ContainerBaseType::id.

ASCString BuildingItem::getName ( ) const

Reimplemented from MapComponent.

Definition at line 115 of file ed_mapcomponent.h.

References ContainerBaseType::getName().

static int BuildingItem::Height ( )

Definition at line 119 of file ed_mapcomponent.h.

References fielddisty, and fieldsizey.

Referenced by displayHeight(), and Maped_MainScreenWidget::Maped_MainScreenWidget().

int BuildingItem::place ( const MapCoordinate mc) const
virtual bool BuildingItem::supportMultiFieldPlacement ( ) const

Reimplemented from MapComponent.

Definition at line 120 of file ed_mapcomponent.h.

static int BuildingItem::Width ( )

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