#include <ed_mapcomponent.h>
Inheritance diagram for VehicleItem:

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 |
Static Public Member Functions | |
| static int | place (GameMap *gamemap, const MapCoordinate &mc, const VehicleType *v, int owner) |
Definition at line 92 of file ed_mapcomponent.h.
| VehicleItem::VehicleItem | ( | const VehicleType * | vehicle | ) | [inline] |
| 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] |
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(), Vehicle::height, ContainerBaseType::height, Vehicle::setnewposition(), VehicleType::terrainaccess, terrainaccessible(), Vehicle::typ, and MapField::vehicle.
Implements MapComponent.
Definition at line 38 of file ed_mapcomponent.cpp.
References actmap, GameMap::getPlayer(), SelectionHolder::getPlayer(), Player::getPlayerColor(), BasicItem< VehicleType >::item, VehicleType::paint(), and selection.
| virtual MapComponent* VehicleItem::clone | ( | ) | const [inline, virtual] |
Implements Placeable.
Definition at line 98 of file ed_mapcomponent.h.
References BasicItem< VehicleType >::item, and VehicleItem().
1.5.1