The Conroy & Conroy Subroutine Library (2021.3 edition)

TSBehavior_Manager
What: class
Ancestor: TBase_Object
File: BehavMan
Layer: 1
Platforms: C++, C#, Javascript, Pascal (OOP), PHP, Python

This class manages a list of behaviors. It has the following methods:

Add
void Add( TBehavior* _Behavior )
procedure Add( _Behavior : PSBehavior )
Adds the behavior to the list.

Allow_Normal_Processing
bool Allow_Normal_Processing( TGeneric_Event* Event )
function Allow_Normal_Processing( Event : PSGeneric_Event ) : boolean
Checks all behaviors to see if event is allowed.

Execute
void Execute( TGeneric_Event* Event )
procedure Execute( Event : PSGeneric_Event )
Ensures the each behavior has a chance to execute on the event.

Remove
void Remove( TBehavior* _Behavior )
procedure Remove( _Behavior : PSBehavior )
Removes the behavior from the list.