Index

Package: Game_States

Description

package Game_States is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Types

Game_State (abstract)

type Game_State is limited interface;
Presents a view of the current game session's state. The Game class implements this so that game components can access the session's state without having a full reference to the Game class.

A_Game_State

type A_Game_State is access all Game_State'Class;

Subprograms & Entries

Get_Var (abstract)

function Get_Var
( this: access Game_State;
name: String ) return Value_Ptr is abstract;
Returns the value of session var 'name', or Null_Value if not defined.

Set_Var (abstract)

procedure Set_Var
( this: access Game_State;
name: String;
value: Value_Ptr'Class ) is abstract;
Sets session var 'name' to 'value'. A Game_Var_Changed event will be queued.