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

#include <ed_mapcomponent.h>

Inheritance diagram for VehicleItem:
Inheritance graph
[legend]

Public Member Functions

 VehicleItem (const VehicleType *vehicle)
 
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< VehicleType >
 BasicItem (const VehicleType *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
 

Static Public Member Functions

static int place (GameMap *gamemap, const MapCoordinate &mc, const VehicleType *v, int owner)
 
- Static Public Member Functions inherited from BasicItem< VehicleType >
static int Width ()
 
static int Height ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 92 of file ed_mapcomponent.h.

Constructor & Destructor Documentation

VehicleItem::VehicleItem ( const VehicleType vehicle)
inline

Definition at line 94 of file ed_mapcomponent.h.

Referenced by clone().

Member Function Documentation

virtual MapComponent* VehicleItem::clone ( ) const
inlinevirtual

Implements Placeable.

Definition at line 98 of file ed_mapcomponent.h.

References BasicItem< VehicleType >::item, and VehicleItem().

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

Implements Placeable.

Definition at line 186 of file edselfnt.cpp.

References actmap, SelectionHolder::getPlayer(), BasicItem< VehicleType >::item, and selection.

Referenced by placeUnit().

int VehicleItem::place ( GameMap gamemap,
const MapCoordinate mc,
const VehicleType v,
int  owner 
)
static

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