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

Public Member Functions | |
| ObjectItem (const ObjectType *object) | |
| virtual int | place (const MapCoordinate &mc) const |
| virtual void | display (Surface &s, const SPoint &pos) const |
| virtual MapComponent * | clone () const |
| virtual bool | remove (const MapCoordinate &mc) const |
Definition at line 132 of file ed_mapcomponent.h.
| ObjectItem::ObjectItem | ( | const ObjectType * | object | ) | [inline] |
| int ObjectItem::place | ( | const MapCoordinate & | mc | ) | const [virtual] |
Implements Placeable.
Definition at line 236 of file edselfnt.cpp.
References actmap, MapField::addobject(), choice_dlg(), GameMap::getField(), and BasicItem< ObjectType >::item.
Implements MapComponent.
Definition at line 136 of file ed_mapcomponent.h.
References ObjectType::display(), and BasicItem< ObjectType >::item.
| virtual MapComponent* ObjectItem::clone | ( | ) | const [inline, virtual] |
Implements Placeable.
Definition at line 137 of file ed_mapcomponent.h.
References BasicItem< ObjectType >::item, and ObjectItem().
| bool ObjectItem::remove | ( | const MapCoordinate & | mc | ) | const [virtual] |
Reimplemented from Placeable.
Definition at line 246 of file edselfnt.cpp.
References actmap, MapField::checkForObject(), GameMap::getField(), BasicItem< ObjectType >::item, and MapField::removeObject().
1.5.1