Packageorg.wak.scene
Classpublic class SceneManager
InheritanceSceneManager Inheritance flash.events.EventDispatcher

This is the manager of Scenes used in the game.



Public Properties
 PropertyDefined by
  currentScene : Scene
[read-only] The current scene where the player is.
SceneManager
  enabled : Boolean
SceneManager
  SceneLayer : DisplayObjectContainer
[read-only] The display object layer to draw the Scenes
SceneManager
Public Methods
 MethodDefined by
  
SceneManager(pLayer:Sprite)
Constructor
SceneManager
  
GetScene(pId:String):Scene
Gets the scene with id pId.
SceneManager
  
LoadScenes(pXMLLocDefs:XML):void
Loads the Scene's definition, but do not instanciate them .
SceneManager
  
SetScene(pId:String):void
Set the active Scene with the id stored in pId
SceneManager
  
SetSceneFromGateSpot(pGs:GateSpot, pFromSceneId:String):void
This method has the same effect that SetScene but it is used where the player change the scene by walking over a GateSpot.
SceneManager
Property detail
currentSceneproperty
currentScene:Scene  [read-only]

The current scene where the player is.

Implementation
    public function get currentScene():Scene
enabledproperty 
enabled:Boolean  [read-write]Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void
SceneLayerproperty 
SceneLayer:DisplayObjectContainer  [read-only]

The display object layer to draw the Scenes

Implementation
    public function get SceneLayer():DisplayObjectContainer
Constructor detail
SceneManager()constructor
public function SceneManager(pLayer:Sprite)

Constructor

Parameters
pLayer:Sprite — the layer where the Scenes will be added.
Method detail
GetScene()method
public function GetScene(pId:String):Scene

Gets the scene with id pId.

Parameters
pId:String

Returns
Scene
LoadScenes()method 
public function LoadScenes(pXMLLocDefs:XML):void

Loads the Scene's definition, but do not instanciate them .

Parameters
pXMLLocDefs:XML — an XML object with the definition of the Scenes.
SetScene()method 
public function SetScene(pId:String):void

Set the active Scene with the id stored in pId

Parameters
pId:String — id of the Scene.
SetSceneFromGateSpot()method 
public function SetSceneFromGateSpot(pGs:GateSpot, pFromSceneId:String):void

This method has the same effect that SetScene but it is used where the player change the scene by walking over a GateSpot.

Parameters
pGs:GateSpot — the GateSpot where the player has walked over.
 
pFromSceneId:String — the scene where the player came from.