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

Plant Class Reference

Regrowing plant. More...

#include <plant.h>

Inheritance diagram for Plant:

Inheritance graph
Collaboration diagram for Plant:

Collaboration graph
List of all members.

Public Member Functions

 Plant (Sint16 xpos=0, Sint16 ypos=0, const ParameterMap &param=ParameterMap())
virtual void touch (Object *)
virtual void idle (Uint16)
virtual Uint16 hit (Uint16 direction, Weapon &weap)
 Weapon hits.

Static Public Attributes

ParameterMap default_parameters

Detailed Description

Regrowing plant.

Member Function Documentation

virtual void Plant::touch Object  )  [virtual]

Touch an object, called when the object position overlaps with the position of another object for the first time.

Reimplemented from Object.

virtual void Plant::idle Uint16   )  [virtual]

What should the object do all the time? This is run first of all.

This should be called downwards by all derived classes

Reimplemented from Monster.

virtual Uint16 Plant::hit Uint16  direction,
Weapon weap

Weapon hits.

Called when hit by a weapon. Depending on the direction and weapon used, certain effects/events are run.

direction Direction from which the weapon deals damage
weap Weapon used in the attack/hit
New health of the character

Reimplemented from Monster.

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