Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

Item Class Reference

Item. More...

#include <objects_common.h>

Inheritance diagram for Item:

Inheritance graph
[legend]
Collaboration diagram for Item:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Item (Sint16 xpos=0, Sint16 ypos=0, const ParameterMap &param=ParameterMap())
virtual bool act (Object *)
void setOwner (Player *plr)
 Assigns the item a new (player) owner.

Static Public Attributes

ParameterMap default_parameters

Protected Attributes

Playerowner

Detailed Description

Item.

An item doesn't interact with other objects besides players who can pick them up and store, use or drop them


Member Function Documentation

virtual bool Item::act Object  )  [inline, virtual]
 

Try to activate any objects in the current position

Returns:
True if an object could be activated

Reimplemented from Object.

Reimplemented in Bomb, Heart, and Key.


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:37 2006 for Lost Penguins by doxygen 1.3.8