The Conroy & Conroy Subroutine Library (2021.3 edition)

TBehavior
What: class
Ancestor: TBase_Delphi_Object
File: Behavior
Layer: 1
Platforms: C++, C#, Javascript, Pascal (OOP), PHP, Python

This abstract class defines a behavior. It has the following methods:

Allow_Normal_Processing
bool Allow_Normal_Processing( TGeneric_Event Event )
Called before default processing of event. Allows behavior to indicate whether or not to allow the event. If False is returned, the event is ignored.

Execute
void Execute( TGeneric_Event Event )
procedure Execute( Event : TGeneric_Event )
Called to execute the event. Default processing may have happened prior to this call.