Index

Package: Games

Description

package Games is

Classes

Game (abstract)

type Game is abstract new Object and Event_Listener and Process with private;

Ancestors:

Immediate Children:

Games.Keen.Keen_Game

Primitive operations:

Adjust (overriding Objects.Adjust)
Construct (overriding Objects.Construct)
Delete (overriding Objects.Delete)
Events.Listeners.To_String (Inherited)
Game_Var_Add
Get_Process_Name (overriding Processes.Get_Process_Name)
Handle_Event (overriding Events.Listeners.Handle_Event)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)
Pause
Set_Game_Var
Set_Game_Var
Tick (overriding Processes.Tick)

References:

games.ads:18:10 (declaration)
games.adb:32:39 (reference)
games.adb:41:37 (reference)
games.adb:51:40 (reference)
games.adb:65:37 (reference)
games.adb:90:43 (reference)
games.adb:101:40 (reference)
games.adb:109:46 (reference)
games.adb:118:43 (reference)
games.adb:159:41 (reference)
games.adb:175:36 (reference)
games.adb:187:43 (reference)
games.adb:198:43 (reference)
games.adb:208:49 (reference)
games.adb:223:36 (reference)
games.adb:245:35 (reference)
games.adb:270:35 (reference)
games.ads:19:31 (reference)
games.ads:27:39 (reference)
games.ads:32:40 (reference)
games.ads:36:41 (reference)
games.ads:40:39 (reference)
games.ads:43:36 (reference)
games.ads:46:35 (reference)
games.ads:65:10 (full declaration)
games.ads:77:37 (reference)
games.ads:79:40 (reference)
games.ads:81:37 (reference)
games.ads:85:43 (reference)
games.ads:88:46 (reference)
games.ads:91:43 (reference)
games.ads:99:36 (reference)
games.ads:103:43 (reference)
games.ads:108:43 (reference)
games.ads:113:49 (reference)
games.ads:115:35 (reference)
games-keen.adb:29:9 (reference)
games-keen.adb:45:9 (reference)
games-keen.adb:68:13 (reference)
games-keen.adb:143:9 (reference)
games-keen.ads:14:27 (reference)

Types

A_Game

type A_Game is access all Game'Class;

References:

games.ads:19:10 (declaration)
applications.ads:97:27 (reference)
games.adb:20:33 (reference)
games.adb:139:17 (reference)
games.adb:149:13 (reference)
games.adb:278:37 (reference)
games.ads:22:33 (reference)
games.ads:49:37 (reference)
games.ads:119:46 (reference)
games-keen.adb:17:33 (reference)
games-keen.adb:18:25 (reference)

Subprograms & Entries

Create_Game

function Create_Game return A_Game;

References:

games.ads:22:14 (declaration)
applications.adb:545:22 (reference)
games.adb:20:14 (body)
games.adb:27:9 (label)
games.ads:23:27 (reference)
Creates a new Game object, using the registered allocator.

Add_View

procedure Add_View
( this: access Game;
view: in out A_Game_View );

References:

games.ads:27:15 (declaration)
applications.adb:548:19 (dispatching call)
games.adb:32:15 (body)
games.adb:36:9 (label)

Calls:

Ada.Containers.Indefinite_Doubly_Linked_Lists.Append defined at a-cidlli.ads:105:14
Adds a view to the game logic. 'view' is consumed and then owned by the Game object.

Get_Corral

function Get_Corral
( this: access Game )
return A_Corral;

References:

games.ads:32:14 (declaration)
games.adb:101:14 (body)
games.adb:104:9 (label)
games-keen.adb:30:14 (reference)
games-keen.adb:31:14 (reference)
games-keen.adb:32:14 (reference)
games-keen.adb:33:14 (reference)
games-keen.adb:41:14 (reference)
games-keen.adb:42:14 (reference)
games-keen.adb:43:14 (reference)
games-keen.adb:44:14 (reference)

Called by:

Games.Keen.Construct defined at games-keen.ads:16:15
Games.Keen.Construct defined at games-keen.ads:16:15
Games.Keen.Construct defined at games-keen.ads:16:15
Games.Keen.Construct defined at games-keen.ads:16:15
Games.Keen.Delete defined at games-keen.ads:18:15
Games.Keen.Delete defined at games-keen.ads:18:15
Games.Keen.Delete defined at games-keen.ads:18:15
Games.Keen.Delete defined at games-keen.ads:18:15
Returns the Game's event corral. It is created during Game construction.

Load_World

procedure Load_World
( this: access Game;
name: String );

References:

games.ads:36:15 (declaration)
games.adb:126:18 (reference)
games.adb:159:15 (body)
games.adb:170:9 (label)
games-keen.adb:134:14 (reference)

Called by:

Games.Handle_Event.Do_Load_World defined at games.adb:124:19
Games.Keen.New_Game defined at games-keen.ads:37:15

Calls:

Ada.Containers.Indefinite_Doubly_Linked_Lists.Is_Empty defined at a-cidlli.ads:63:13
Debugging.Dbg defined at debugging.ads:58:15
Set_World defined at games.ads:113:15
Worlds.Load_World defined at worlds.ads:56:14
Raises exception on error, clearing the current world.

New_Game (abstract)

procedure New_Game
( this: access Game )
is abstract;

References:

games.ads:40:15 (declaration)
games.adb:149:26 (dispatching call)

Called by:

Handle_Event defined at games.ads:91:15
Begins a new game session from the start.

Start

procedure Start
( this: access Game );

References:

games.ads:43:15 (declaration)
applications.adb:550:19 (dispatching call)
games.adb:223:15 (body)
games.adb:240:9 (label)

Calls:

Ada.Containers.Indefinite_Doubly_Linked_Lists.Iterate defined at a-cidlli.ads:177:14
Events.Corrals.Add_Listener defined at events-corrals.ads:25:15
Games.Start.Examine defined at games.adb:225:19
Processes.Managers.Attach defined at processes-managers.ads:29:15
Processes.Managers.Start defined at processes-managers.ads:47:15
Starts the game logic and attaches it to the framework.

Stop

procedure Stop
( this: access Game );

References:

games.ads:46:15 (declaration)
applications.adb:554:19 (dispatching call)
games.adb:245:15 (body)
games.adb:265:9 (label)

Calls:

Ada.Containers.Indefinite_Doubly_Linked_Lists.Iterate defined at a-cidlli.ads:177:14
Events.Corrals.Remove_Listener defined at events-corrals.ads:42:15
Games.Stop.Examine defined at games.adb:247:19
Processes.Managers.Detach defined at processes-managers.ads:33:15
Processes.Managers.Stop defined at processes-managers.ads:50:15
Worlds.Detach_From_Framework defined at worlds.ads:67:15
Stops the game logic and detaches it from the framework.

Delete

procedure Delete
( this: in out A_Game );

References:

games.ads:49:15 (declaration)
applications.adb:176:9 (reference)
games.adb:278:15 (body)
games.adb:281:9 (label)

Calls:

Objects.Delete defined at objects.ads:46:15
Deletes the Game.