ObjectItem Class Reference

#include <ed_mapcomponent.h>

Inheritance diagram for ObjectItem:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ObjectItem (const ObjectType *object)
virtual int place (const MapCoordinate &mc) const
virtual void display (Surface &s, const SPoint &pos) const
virtual MapComponentclone () const
virtual bool remove (const MapCoordinate &mc) const

Detailed Description

Definition at line 132 of file ed_mapcomponent.h.


Constructor & Destructor Documentation

ObjectItem::ObjectItem ( const ObjectType object  )  [inline]

Definition at line 134 of file ed_mapcomponent.h.

Referenced by clone().


Member Function Documentation

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.

virtual void ObjectItem::display ( Surface s,
const SPoint pos 
) const [inline, virtual]

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().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:09 2012 for Advanced Strategic Command by  doxygen 1.5.1