#include <behavioreffect.h>
Inheritance diagram for BehaviorEffect:
Public Member Functions | |
BehaviorEffect () | |
BehaviorEffect (Actor *sender, int magnitude) | |
int | get_magnitude () |
virtual RecList & | get_receiver_list () |
Protected Attributes | |
int | _magnitude |
how scary the monster, how tasty the food, etc. |
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.
|
Dummy constructor, pretty much here solely for adding to the receiver list. |
|
Constructor for a Behavior effect.
|
|
|
|
Implements Effect. Reimplemented in FearEffect, HungerEffect, MeatEffect, and VeggieEffect. |