Main Page · Modules · All Classes · Class Hierarchy
Protected Member Functions | List of all members
MADebugMode Class Reference

Debug mode behavior. More...

#include <MADebugMode.hpp>

Inheritance diagram for MADebugMode:
MABehavior

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.
 
- Protected Member Functions inherited from MABehavior
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

- Public Types inherited from MABehavior
- Public Member Functions inherited from MABehavior
 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...
 
MABehaviorGetMaster ()
 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 Public Member Functions inherited from MABehavior
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 MABehaviorGetBehavior (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...
 
- Public Attributes inherited from MABehavior
boost::shared_ptr< BehaviorDestroyedSignalTypeBehaviorDestroyedSignal
 Behavior destruction signal.
 
- Protected Attributes inherited from MABehavior
MA::DesiredConnectionMap DesiredConnections
 Desired connection map to other behaviors.
 

Detailed Description

Debug mode behavior.

Definition at line 34 of file MADebugMode.hpp.

Member Function Documentation

MABehavior::StimulusLevelType MADebugMode::GetCurrentStimulus ( )
overrideprotectedvirtual

Get the current behavior stimulus.

Returns
Current stimulus

Implements MABehavior.

Definition at line 34 of file MADebugMode.cpp.


The documentation for this class was generated from the following files: