Packageorg.wak.main
Classpublic class AdventureMaster

This class is the orchestra director of the whole running adventure basicly controls the entry point of the game, initialization , shuting up, everything.



Public Properties
 PropertyDefined by
  ActionsMngr : ActionsManager
[static][read-only]
AdventureMaster
  adventureSettings : IAdventureSettings
[read-only]
AdventureMaster
  CharactersMngr : CharactersManager
[static][read-only]
AdventureMaster
  defaultPlayerCharacterId : String
[static][read-only] The player's character id used by default.
AdventureMaster
  DialogMngr : DialogManager
[static][read-only]
AdventureMaster
  GuiMngr : GuiManager
[static][read-only]
AdventureMaster
  InventoryItemsMngr : InventoryManager
[static][read-only]
AdventureMaster
  Resources : Class
[static][read-only] Getter for the Resource manager class.
AdventureMaster
  SceneMngr : SceneManager
[static][read-only]
AdventureMaster
  Texts : IStringSet
[static][read-only] Localized common used text in the interface.
AdventureMaster
  useCustomCursors : Boolean
[static][read-only] Flag to enable or disable the use of custom mouse cursors.
AdventureMaster
Public Methods
 MethodDefined by
  
Constructor
AdventureMaster
  
Add a new PuzzleController to the adventure.
AdventureMaster
  
Initialize():void
Run the initialization of the game.
AdventureMaster
  
Removes a PuzzleController from the adventure.
AdventureMaster
  
SetMainClass(pMain:DisplayObjectContainer):void
This is a setter method to give your game main class to the adventureMaster.
AdventureMaster
  
SetResMngr(pRes:Class):void
This is a setter method to give the ResourceManager class to the AdventureMaster.
AdventureMaster
  
This method is to pass the class which holds the global adventure settings.
AdventureMaster
  
SetTextMngr(pTxtClass:IStringSet):void
Setter method to set the TextManager class containing localized strings.
AdventureMaster
  
Start():void
Makes post initialization task to start the adventure.
AdventureMaster
Property detail
ActionsMngrproperty
ActionsMngr:ActionsManager  [read-only]Implementation
    public static function get ActionsMngr():ActionsManager
adventureSettingsproperty 
adventureSettings:IAdventureSettings  [read-only]Implementation
    public function get adventureSettings():IAdventureSettings
CharactersMngrproperty 
CharactersMngr:CharactersManager  [read-only]Implementation
    public static function get CharactersMngr():CharactersManager
defaultPlayerCharacterIdproperty 
defaultPlayerCharacterId:String  [read-only]

The player's character id used by default.

Implementation
    public static function get defaultPlayerCharacterId():String
DialogMngrproperty 
DialogMngr:DialogManager  [read-only]Implementation
    public static function get DialogMngr():DialogManager
GuiMngrproperty 
GuiMngr:GuiManager  [read-only]Implementation
    public static function get GuiMngr():GuiManager
InventoryItemsMngrproperty 
InventoryItemsMngr:InventoryManager  [read-only]Implementation
    public static function get InventoryItemsMngr():InventoryManager
Resourcesproperty 
Resources:Class  [read-only]

Getter for the Resource manager class.

Implementation
    public static function get Resources():Class
SceneMngrproperty 
SceneMngr:SceneManager  [read-only]Implementation
    public static function get SceneMngr():SceneManager
Textsproperty 
Texts:IStringSet  [read-only]

Localized common used text in the interface.

Implementation
    public static function get Texts():IStringSet

See also

IStringSet
useCustomCursorsproperty 
useCustomCursors:Boolean  [read-only]

Flag to enable or disable the use of custom mouse cursors.

Implementation
    public static function get useCustomCursors():Boolean
Constructor detail
AdventureMaster()constructor
public function AdventureMaster()

Constructor

Method detail
AddPuzzleController()method
public function AddPuzzleController(pPc:PuzzleControllerBase):void

Add a new PuzzleController to the adventure.

Parameters
pPc:PuzzleControllerBase — a PuzzleControllerBase
Initialize()method 
public function Initialize():void

Run the initialization of the game.

RemovePuzzleController()method 
public function RemovePuzzleController(pPc:PuzzleControllerBase):void

Removes a PuzzleController from the adventure.

Parameters
pPc:PuzzleControllerBase — a PuzzleControllerBase
SetMainClass()method 
public function SetMainClass(pMain:DisplayObjectContainer):void

This is a setter method to give your game main class to the adventureMaster.

Parameters
pMain:DisplayObjectContainer — Your main class either Sprite or MovieClip.
SetResMngr()method 
public function SetResMngr(pRes:Class):void

This is a setter method to give the ResourceManager class to the AdventureMaster.

Parameters
pRes:Class — Your resource manager class
SetSettings()method 
public function SetSettings(pSettings:IAdventureSettings):void

This method is to pass the class which holds the global adventure settings.

Parameters
pSettings:IAdventureSettings — an IAdventureSettings containing the adventure configuration.
SetTextMngr()method 
public function SetTextMngr(pTxtClass:IStringSet):void

Setter method to set the TextManager class containing localized strings.

Parameters
pTxtClass:IStringSet — a IStringSet for the Text Manager.
Start()method 
public function Start():void

Makes post initialization task to start the adventure.