Index

Package: Triggers

Description

package Entities.Triggers is

Classes

Trigger (abstract)

type Trigger is abstract new Entity with private;

Ancestors:

Immediate Children:

Primitive operations:

Construct
Entities.Adjust (Inherited)
Entities.Construct (Inherited)
Entities.Delete (Inherited)
Entities.Face (Inherited)
Entities.Object_Input (Inherited)
Entities.On_Hit_Wall (Inherited)
Entities.On_Separate (Inherited)
Entities.Set_Attribute (Inherited)
Entities.Tick (Inherited)
Entities.To_String (Inherited)
Entities.Update_Frame (Inherited)
Object_Read (overriding Entities.Object_Read)
Object_Write (overriding Entities.Object_Write)
Objects.Construct (Inherited)
On_Activate (overriding Entities.On_Activate)
On_Collide (overriding Entities.On_Collide)
On_Load (overriding Entities.On_Load)
A Trigger is an entity that performs an action when a condition is met at a configurable time. For example, when a player collides with a trigger, a new level may be loaded.

Types

A_Trigger

type A_Trigger is access all Trigger'Class;

Constants & Global variables

CLASS_PATTERN (String)

CLASS_PATTERN : constant String := "Entities.Triggers.*";
A class pattern that matches all trigger class ids registered in the entity factory.

Subprograms & Entries

Execute (abstract)

procedure Execute
( this: access Trigger;
action, argument: String;
activator: A_Entity ) is abstract;
Implement this procedure to execute the trigger's action. Execute is called when the conditions for executing the trigger are met. 'action' is canonically lower case. 'activator' may be null if there is no activating entity. (ie: executing on world load)