Index

Package: Ked

Description

package Game_Views.Ked 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.

Classes

Ked_View

type Ked_View is new Game_View with private;

Ancestors:

Primitive operations:

Construct
Delete (overriding Game_Views.Delete)
Events.Listeners.To_String (Inherited)
Game_Views.Construct (Inherited)
Game_Views.Get_Process_Name (Inherited)
Game_Views.Initialize_Widgets (Inherited)
Game_Views.On_Close_Window (Inherited)
Game_Views.On_Finalize (Inherited)
Game_Views.On_Game_Paused (Inherited)
Game_Views.On_Game_State_Changed (Inherited)
Game_Views.On_Initialize (Inherited)
Game_Views.On_Loading_Begin (Inherited)
Game_Views.On_Loading_End (Inherited)
Game_Views.On_World_Property_Changed (Inherited)
Game_Views.Tick (Inherited)
Handle_Event (overriding Game_Views.Handle_Event)
Initialize_Widgets
Objects.Construct (Inherited)
Objects.To_String (Inherited)
On_Close_Window
On_Finalize
On_Game_Paused
On_Initialize
On_World_Property_Changed

Types

Dialog_Action

type Dialog_Action is ( DA_None, DA_New, DA_Open, DA_Import, DA_Quit, DA_Save );

A_Ked_View

type A_Ked_View is access all Ked_View'Class;

Subprograms & Entries

Do_Dialog_Action

procedure Do_Dialog_Action
( this: not null access Ked_View'Class;
action: Dialog_Action;
saveChanges: Boolean );
Performs a dialog action. If the world has been modified and saveChanges is True, the dialog action will be postponed and the Save Changes confirmation dialog will be shown first.

Do_Dialog_Action

procedure Do_Dialog_Action
( this: not null access Ked_View'Class;
saveChanges: Boolean );
Performs the previously requested dialog action, or nothing if one hasn't been requested yet. If 'saveChanges' is True then changes will be saved before performing the dialog action if the current world has a filename. If the world doesn't have a filename, the previously requested dialog action will be postponed and the save world dialog will be shown first.

Get_Filename

function Get_Filename
( this: not null access Ked_View'Class ) return String;
Returns the filename of the currently open world.

Get_Tool

function Get_Tool
( this: not null access Ked_View'Class ) return Tool_Type;
Returns the type of the currently active tool.

Save_World

procedure Save_World
( this: not null access Ked_View'Class;
filename: String );
Raises an exception on error.