Advanced Strategic Command
|
#include <ed_mapcomponent.h>
Public Member Functions | |
VehicleItem (const VehicleType *vehicle) | |
virtual int | place (const MapCoordinate &mc) const |
virtual void | display (Surface &s, const SPoint &pos) const |
virtual MapComponent * | clone () const |
![]() | |
BasicItem (const VehicleType *i) | |
ASCString | getName () const |
virtual int | displayWidth () const |
virtual int | displayHeight () const |
virtual int | getID () const |
![]() | |
MapComponent (const MapItemType *item) | |
const MapItemType * | getItemType () const |
virtual bool | supportMultiFieldPlacement () const |
void | displayClip (PG_Widget *parent, SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) const |
![]() | |
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 int | Width () |
static int | Height () |
Additional Inherited Members | |
![]() | |
static const int | fontHeight = 20 |
![]() | |
Surface & | getClippingSurface () const |
![]() | |
int | getPlayer () const |
![]() | |
const VehicleType * | item |
![]() | |
const MapItemType * | mapItem |
![]() | |
static Surface | clippingSurface |
Definition at line 92 of file ed_mapcomponent.h.
|
inline |
Definition at line 94 of file ed_mapcomponent.h.
Referenced by clone().
|
inlinevirtual |
Implements Placeable.
Definition at line 98 of file ed_mapcomponent.h.
References BasicItem< VehicleType >::item, and VehicleItem().
Implements MapComponent.
Definition at line 38 of file ed_mapcomponent.cpp.
References actmap, SelectionHolder::getPlayer(), GameMap::getPlayer(), Player::getPlayerColor(), BasicItem< VehicleType >::item, VehicleType::paint(), and selection.
|
virtual |
Implements Placeable.
Definition at line 186 of file edselfnt.cpp.
References actmap, SelectionHolder::getPlayer(), BasicItem< VehicleType >::item, and selection.
Referenced by placeUnit().
|
static |
Definition at line 134 of file edselfnt.cpp.
References TerrainAccess::accessible(), MapField::bdt, MapField::building, cgp_movefrominvalidfields, chtieffliegend, Vehicle::convert(), Vehicle::fillMagically(), GameMap::getField(), GameMap::getgameparameter(), ContainerBaseType::height, Vehicle::height, Vehicle::resetMovement(), Vehicle::setnewposition(), VehicleType::terrainaccess, terrainaccessible(), Vehicle::typ, and MapField::vehicle.