Index

Package: Games

Description

package Applications.Gui.Games is

Classes

Game_Application (abstract)

type Game_Application is abstract new Gui_Application with private;

Ancestors:

Immediate Children:

Applications.Gui.Games.Keen.Keen_Application

Primitive operations:

Applications.Delete (Inherited)
Applications.Gui.Construct (Inherited)
Applications.Gui.Construct (Inherited)
Close (overriding Applications.Gui.Close)
Draw_Loading_Screen
Init (overriding Applications.Gui.Init)
Init (overriding Applications.Gui.Init)
Objects.Construct (Inherited)
Objects.To_String (Inherited)
Run (overriding Applications.Run)
An abstract application class that runs an event-based game.

Types

A_Game_Application

type A_Game_Application is access all Game_Application'Class;

Subprograms & Entries

Stop

procedure Stop
( this: not null access Game_Application'Class;
errorCode: Integer := NO_ERROR );
Stops the running game. This will cause the thread that called Run to return. The value of 'errorCode' determines the value of 'returnCode' that will be returned from Run.

Terminate_Application

procedure Terminate_Application
( error: String );
Forces the application to shut down, displaying the given error message. If no Application has been created, then the system level shutdown procedure will be called. This is only to be used in the case of a fatal error. Execution will return from this procedure, so plan accordingly.