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

Public Member Functions | |
| MapComponent (const MapItemType *item) | |
| const MapItemType * | getItemType () const |
| virtual int | displayWidth () const =0 |
| virtual int | displayHeight () const =0 |
| virtual MapComponent * | clone () const =0 |
| virtual int | place (const MapCoordinate &mc) const =0 |
| virtual bool | remove (const MapCoordinate &mc) const |
| void | vPlace (const MapCoordinate &mc) const |
| just a wrapper so we have a function return void | |
| 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 |
| virtual | ~MapComponent () |
Static Public Attributes | |
| static const int | fontHeight = 20 |
Protected Member Functions | |
| virtual Surface & | getClippingSurface () const =0 |
| int | getPlayer () const |
Protected Attributes | |
| const MapItemType * | mapItem |
It is the abstract class on which the Brush edit function operates
Definition at line 44 of file ed_mapcomponent.h.
|
|
Definition at line 44 of file ed_mapcomponent.cpp. References SelectionHolder::playerChanged, and selection. |
|
|
Definition at line 66 of file ed_mapcomponent.h. |
|
|
Implemented in VehicleItem, BuildingItem, ObjectItem, TerrainItem, and MineItem. Referenced by SelectionHolder::setSelection(). |
|
||||||||||||
|
Implemented in VehicleItem, BuildingItem, ObjectItem, TerrainItem, and MineItem. Referenced by displayClip(). |
|
||||||||||||||||||||
|
Definition at line 100 of file edselfnt.cpp. References PG_Draw::BlitSurface(), Surface::createSurface(), display(), displayHeight(), displayWidth(), fontHeight, getClippingSurface(), PG_Widget::GetFontAscender(), getItemType(), PG_Rect::null, and PG_FontEngine::RenderText(). |
|
|
Implemented in BasicItem< Item >, BuildingItem, BasicItem< TerrainType >, BasicItem< MineType >, BasicItem< ObjectType >, and BasicItem< Vehicletype >. Referenced by displayClip(). |
|
|
Implemented in BasicItem< Item >, BuildingItem, BasicItem< TerrainType >, BasicItem< MineType >, BasicItem< ObjectType >, and BasicItem< Vehicletype >. Referenced by displayClip(). |
|
|
Implemented in BasicItem< Item >, BuildingItem, BasicItem< TerrainType >, BasicItem< MineType >, BasicItem< ObjectType >, and BasicItem< Vehicletype >. Referenced by displayClip(). |
|
|
Definition at line 55 of file ed_mapcomponent.h. References mapItem. Referenced by displayClip(). |
|
|
Definition at line 51 of file ed_mapcomponent.h. |
|
|
Implemented in VehicleItem, BuildingItem, ObjectItem, TerrainItem, and MineItem. Referenced by vPlace(). |
|
|
Reimplemented in ObjectItem. Definition at line 60 of file ed_mapcomponent.h. |
|
|
Reimplemented in BuildingItem. Definition at line 64 of file ed_mapcomponent.h. |
|
|
just a wrapper so we have a function return void
Definition at line 62 of file ed_mapcomponent.h. References place(). Referenced by placeCurrentItem(). |
|
|
Definition at line 54 of file ed_mapcomponent.h. Referenced by displayClip(). |
|
|
Definition at line 49 of file ed_mapcomponent.h. Referenced by getItemType(). |
1.4.2