#include <src/orxonox/objects/pickup/UsableItem.h>
Public Member Functions | |
UsableItem (BaseObject *creator) | |
Constructor. Registers the UsableItem. | |
virtual void | used (Pawn *pawn) |
Method invoked when the item is being used. | |
virtual | ~UsableItem () |
orxonox::UsableItem::UsableItem | ( | BaseObject * | creator | ) |
Constructor. Registers the UsableItem.
creator | Pointer to the object which created this item. |
References RegisterObject.
virtual orxonox::UsableItem::~UsableItem | ( | ) | [inline, virtual] |
virtual void orxonox::UsableItem::used | ( | Pawn * | pawn | ) | [inline, virtual] |
Method invoked when the item is being used.
pawn | Pawn which is using the item. |
Reimplemented in orxonox::HealthUsable, and orxonox::Jump.
Referenced by orxonox::PickupCollection::useItem().