Packageartcustomer.maxima.engine
Classpublic class GameEngine
InheritanceGameEngine Inheritance AbstractDisplayCoreEngine Inheritance AbstractCoreEngine Inheritance flash.events.EventDispatcher

GameEngine



Protected Properties
 PropertyDefined By
 Inherited_injector : EngineObjectInjector
AbstractCoreEngine
Public Methods
 MethodDefined By
  
Constructor
GameEngine
  
destroy():void
[override] Destructor
GameEngine
  
[static] Instantiate GameEngine.
GameEngine
  
reset():void
Reset game.
GameEngine
  
setGame(engineClass:Class, name:String):void
Set the game in the engine.
GameEngine
  
setGlobalLoader(engineClass:Class, name:String):void
Set global loader for the game.
GameEngine
  
setup():void
[override] Entry point.
GameEngine
  
setView(engineClass:Class, name:String):void
Set single view in the engine.
GameEngine
  
setViewGroup(engineClass:Class, name:String):void
Set view group in the engine.
GameEngine
  
start():void
Start game.
GameEngine
Constructor Detail
GameEngine()Constructor
public function GameEngine()

Constructor

Method Detail
destroy()method
override public function destroy():void

Destructor

getInstance()method 
public static function getInstance():GameEngine

Instantiate GameEngine.

Returns
GameEngine
reset()method 
public function reset():void

Reset game.

setGame()method 
public function setGame(engineClass:Class, name:String):void

Set the game in the engine.

Parameters

engineClass:Class — : Class extends DisplayGame
 
name:String — : Name of the object (the key)

setGlobalLoader()method 
public function setGlobalLoader(engineClass:Class, name:String):void

Set global loader for the game. Would be called at first !

Parameters

engineClass:Class — : Class extends GlobalLoader
 
name:String — : Name of the object (the key)

setup()method 
override public function setup():void

Entry point.

setView()method 
public function setView(engineClass:Class, name:String):void

Set single view in the engine.

Parameters

engineClass:Class — : Class extends DisplayView
 
name:String — : Name of the object (the key)

setViewGroup()method 
public function setViewGroup(engineClass:Class, name:String):void

Set view group in the engine. A view group can contain multiple views.

Parameters

engineClass:Class — : Class extends DisplayViewGroup
 
name:String — : Name of the object (the key)

start()method 
public function start():void

Start game.