| Package | org.wak.scene |
| Class | public class SceneManager |
| Inheritance | SceneManager flash.events.EventDispatcher |
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
SceneManager(pLayer:Sprite)
Constructor
| SceneManager | ||
|
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 | ||
| currentScene | property |
currentScene:Scene [read-only]The current scene where the player is.
Implementation public function get currentScene():Scene
| enabled | property |
enabled:Boolean [read-write]Implementation
public function get enabled():Boolean
public function set enabled(value:Boolean):void
| SceneLayer | property |
SceneLayer:DisplayObjectContainer [read-only]The display object layer to draw the Scenes
Implementation public function get SceneLayer():DisplayObjectContainer
| SceneManager | () | constructor |
public function SceneManager(pLayer:Sprite)Constructor
ParameterspLayer:Sprite — the layer where the Scenes will be added.
|
| GetScene | () | method |
public function GetScene(pId:String):SceneGets the scene with id pId.
ParameterspId:String |
Scene |
| LoadScenes | () | method |
public function LoadScenes(pXMLLocDefs:XML):voidLoads the Scene's definition, but do not instanciate them .
ParameterspXMLLocDefs:XML — an XML object with the definition of the Scenes.
|
| SetScene | () | method |
public function SetScene(pId:String):voidSet the active Scene with the id stored in pId
ParameterspId:String — id of the Scene.
|
| SetSceneFromGateSpot | () | method |
public function SetSceneFromGateSpot(pGs:GateSpot, pFromSceneId:String):voidThis method has the same effect that SetScene but it is used where the player change the scene by walking over a GateSpot.
ParameterspGs:GateSpot — the GateSpot where the player has walked over.
|
|
pFromSceneId:String — the scene where the player came from.
|