Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

BehaviorEffect Class Reference

#include <behavioreffect.h>

Inheritance diagram for BehaviorEffect:

Effect FearEffect HungerEffect MeatEffect VeggieEffect List of all members.

Public Member Functions

 BehaviorEffect ()
 BehaviorEffect (Actor *sender, int magnitude)
int get_magnitude ()
virtual RecListget_receiver_list ()

Protected Attributes

int _magnitude
 how scary the monster, how tasty the food, etc.


Detailed Description

Governs the behaviors of animals.

Behavior effects can have magnitudes, which signals to the receiver how big this effect is. This has different meanings depending on the type of effect: for FearEffects, magnitude is how scary the monster is; for HungerEffects, magnitude is how tasty the food is; and so on.


Constructor & Destructor Documentation

BehaviorEffect::BehaviorEffect  )  [inline]
 

Dummy constructor, pretty much here solely for adding to the receiver list.

BehaviorEffect::BehaviorEffect Actor sender,
int  magnitude
[inline]
 

Constructor for a Behavior effect.

Parameters:
magnitude how scary the monster, how tasty the food, etc


Member Function Documentation

int BehaviorEffect::get_magnitude  )  [inline]
 

Returns:
the intensity of the behavior effect.

virtual RecList& BehaviorEffect::get_receiver_list  )  [inline, virtual]
 

Returns:
the WhoCares list.

Implements Effect.

Reimplemented in FearEffect, HungerEffect, MeatEffect, and VeggieEffect.


The documentation for this class was generated from the following files:
Generated on Sat Mar 13 15:00:10 2004 by doxygen 1.3.5