com.theoworlds.TheoEditor

com.theoworlds.TheoEditor

TheoEditor class - Theo MapEditor application main class

Version

1.0

Author

© TheoWorlds.com, 2007-2008.

Summary
com.theoworlds.TheoEditorTheoEditor class - Theo MapEditor application main class
Variables
_ui
_modeEdition
_world
_cataloguestores the catalogue data loaded from XML.
_anyCharacterLibraryParams
Functions
TheoEditor
initConfig
initInitialization.
onLoadXMLMap
initUIUI initialization
onKeyDown
onMouseUp
onMouseMove
onMouseDown
wHandlerHandles World UI events super class World has a special handler called worldHandler - we DO NOT overwrite it the structure of the object is the same as in uiHandler Object
uiGlobalsHandlerhandles UI events that don’t affect the Map Editor mode
uiHandlerHanles the UI events
parseCatalogueLibraries
onParsedMapXMLLibraryevent generated when the symbols of a library are loaded and parsed
createNewWorld

Variables

_ui

private var _ui: MapEditorUI

_modeEdition

private var _modeEdition: Object
stores the curent editor modeObject from uiHandler (it depends mode on) [“mode”] [“action”] [“data”]{[“libID”],[“libItemID”],[“libFrame”],[“mos”]} [“bitmap”]

_world

private var _world: WorldEditor

_catalogue

private var _catalogue: XML

stores the catalogue data loaded from XML.  It’s not destoyed after parcing and can be accessed at any time

_anyCharacterLibraryParams

private var _anyCharacterLibraryParams: CharacterSettings

Functions

TheoEditor

public function TheoEditor(gui: ITheoUI)

initConfig

private function initConfig():Void

init

private function init():Void

Initialization.  Called after the parcing of config.xml

onLoadXMLMap

private function onLoadXMLMap(success: Boolean):Void

initUI

private function initUI():Void

UI initialization

onKeyDown

function onKeyDown():Void

onMouseUp

function onMouseUp():Void

onMouseMove

function onMouseMove():Void

onMouseDown

function onMouseDown():Void

wHandler

private function wHandler(o: Object):Void

Handles World UI events super class World has a special handler called worldHandler - we DO NOT overwrite it the structure of the object is the same as in uiHandler Object

Parameters

o- {type:”change”, mode:Number, action:Number, [data:Object]}

uiGlobalsHandler

private function uiGlobalsHandler(o: Object):Void

handles UI events that don’t affect the Map Editor mode

{type:”globalChange”, action:Number, data:Object}

uiHandler

private function uiHandler(o: Object):Void

Hanles the UI events

Parameters

o- {type:”change”, mode:Number, action:Number, [data:Object]}

parseCatalogueLibraries

private function parseCatalogueLibraries():Void

onParsedMapXMLLibrary

private function onParsedMapXMLLibrary():Void

event generated when the symbols of a library are loaded and parsed

createNewWorld

private function createNewWorld(mapInfo: Object) : Void
TheoApp class -- basic Theo application class.
private var _ui: MapEditorUI
private var _modeEdition: Object
private var _world: WorldEditor
private var _catalogue: XML
stores the catalogue data loaded from XML.
private var _anyCharacterLibraryParams: CharacterSettings
public function TheoEditor(gui: ITheoUI)
private function initConfig():Void
private function init():Void
Initialization.
private function onLoadXMLMap(success: Boolean):Void
private function initUI():Void
UI initialization
function onKeyDown():Void
function onMouseUp():Void
function onMouseMove():Void
function onMouseDown():Void
private function wHandler(o: Object):Void
Handles World UI events super class World has a special handler called worldHandler - we DO NOT overwrite it the structure of the object is the same as in uiHandler Object
private function uiGlobalsHandler(o: Object):Void
handles UI events that don’t affect the Map Editor mode
private function uiHandler(o: Object):Void
Hanles the UI events
private function parseCatalogueLibraries():Void
private function onParsedMapXMLLibrary():Void
event generated when the symbols of a library are loaded and parsed
private function createNewWorld(mapInfo: Object) : Void
Close