Main Page · Modules · All Classes · Class Hierarchy |
Debug mode behavior. More...
#include <MADebugMode.hpp>
Protected Member Functions | |
virtual MABehavior::StimulusLevelType | GetCurrentStimulus () override |
Get the current behavior stimulus. More... | |
virtual void | ActivatingActions () override |
Perform actions when the behavior is being activated. | |
![]() | |
void | ResetSelfActivation () |
Reset the self-activation level to zero. | |
void | SetMaxSelfActivation () |
Set maximal self-activation level. | |
void | SetSelfActivationDuration (const int new_duration) |
Set the self-activation duration. More... | |
int | GetSelfActivationDuration () const |
Get the self-activation duration. More... | |
Additional Inherited Members | |
![]() | |
![]() | |
MABehavior (const std::string &type_name, bool dynamic=true) | |
Create a behavior. More... | |
const std::string & | GetTypeName () const |
Get the behavior type name. More... | |
StateType | GetState () const |
Get the behavior state. More... | |
bool | IsDynamic () const |
Check if the behavior is dynamic. More... | |
void | AddSlave (MABehavior &slave) |
Add a slave behavior. More... | |
MABehavior * | GetMaster () |
Get the master behavior. More... | |
void | SetMaster (MABehavior *master) |
Set a new master behavior. More... | |
bool | HasSlave () const |
Check if the behavior has any slave behavior. More... | |
void | SetLifetimeExpirationTime (const unsigned int expiration_time) |
Set the lifetime expiration time. More... | |
void | SetActivatedStateExpirationTime (const unsigned int expiration_time) |
Set the activated state expiration time. More... | |
int | GetElapsedActivatedStateTime () const |
Get the elapsed activated state time. More... | |
int | GetActivationLevel () |
Get the activation level. More... | |
bool | HasActivatedStateExpired () const |
Check if the activated state is expired. More... | |
void | Input () |
Calculate the input based on the current stimulus. More... | |
void | SetState (StateType new_state) |
Set a new state. More... | |
void | MarkDirty () |
Mark the behavior as dirty. | |
void | StartTransition (MAController &controller, const std::string &transition_name) |
Start a transition. More... | |
void | RegisterActiveTransition (MAController &controller, const std::string &transition_name) |
Register an active transition. More... | |
int | PlaySound (const std::string &name) |
Play a sound and register the playback. More... | |
int | PlaySound (MA::SoundBaseSPtr sound) |
Play a sound and register the playback. More... | |
![]() | |
static const MA::BehaviorList & | GetBehaviors () |
Get all existing behaviors. More... | |
static const MA::BehaviorList & | GetNewBehaviors () |
Get all new behaviors. More... | |
static void | SetVerbose (bool new_state) |
Set the verbosity state in behaviors. More... | |
static bool | IsVerbose () |
Check the verbosity state. More... | |
static void | ClearBehaviorStateEvents () |
Get the current behavior state events. More... | |
static MABehavior * | GetBehavior (const std::string &type_name) |
Get an existing behavior by type name. More... | |
static bool | Exists (const std::string &type_name, bool can_be_dying=false) |
Check if a behavior exists. More... | |
static bool | Exists (const MABehavior *behavior, bool can_be_dying=false) |
Check if a behavior exists. More... | |
static bool | IsDying (const std::string &type_name) |
Check if a behavior is dying. More... | |
static bool | IsDying (const MABehavior *behavior) |
Check if a behavior is dying. More... | |
static void | CalculateActivations () |
Calculate the current self-activation levels and send them out to the connected behaviors. More... | |
static void | GarbageCollection () |
Destroy the dirty behaviors. | |
static void | Cleanup () |
Destroy all behaviors. More... | |
static void | MergeNewBehaviors () |
Merge all new behaviors to the existing behaviors. | |
static void | DumpBehaviors () |
Print the existing behaviors. | |
static bool | IsMergeNeeded () |
Check if new behavior merge is needed. More... | |
![]() | |
boost::shared_ptr< BehaviorDestroyedSignalType > | BehaviorDestroyedSignal |
Behavior destruction signal. | |
![]() | |
MA::DesiredConnectionMap | DesiredConnections |
Desired connection map to other behaviors. | |
Debug mode behavior.
Definition at line 34 of file MADebugMode.hpp.
|
overrideprotectedvirtual |
Get the current behavior stimulus.
Implements MABehavior.
Definition at line 34 of file MADebugMode.cpp.