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

Erik Class Reference

Erik (Viking). More...

#include <erik.h>

Inheritance diagram for Erik:

Inheritance graph
[legend]
Collaboration diagram for Erik:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Erik (Sint16 xpos=0, Sint16 ypos=0, const ParameterMap &param=ParameterMap())
virtual void idle (Uint16)
virtual void in_sp1 ()
 Erik jumps.
virtual void in_sp2 ()
 Erik runs.
virtual void in_left (Uint16)
virtual void in_right (Uint16)
virtual void crash (Uint16 dir)
 Called when crashing into a dense object (default: ground).
virtual Uint16 hit (Uint16 direction, Weapon &weap)
 Weapon hits.

Static Public Attributes

ParameterMap default_parameters

Detailed Description

Erik (Viking).

Act1: first jump
Act2: second jump

Todo:
Implement water (STATE_WATER)

Add jump and run attacks


Member Function Documentation

virtual void Erik::idle Uint16   )  [virtual]
 

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

Remarks:
This should be called downwards by all derived classes

Reimplemented from Player.

virtual void Erik::crash Uint16  dir  )  [virtual]
 

Called when crashing into a dense object (default: ground).

Parameters:
dir Direction of the crash
Bug:
crash is called _after_ addEnter/etc, so if one of those sets an event, it will be canceled by crash!

Reimplemented from Player.

virtual Uint16 Erik::hit Uint16  direction,
Weapon weap
[virtual]
 

Weapon hits.

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

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

Reimplemented from Player.


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