Packageorg.wak.character
Classpublic class CharactersManager

This is the manager of Characters and CharactersDisplay entities.



Public Methods
 MethodDefined by
  
Constructor.
CharactersManager
  
GetCharacter(pCharacterId:String):AdventureCharacter
Gets an AdventureCharacter by its id
CharactersManager
  
Gets an AbstractCharacterDisplay by id
CharactersManager
  
Gets the current player's character.
CharactersManager
  
LoadCharsDefinitions(pXMLCharsDef:XML):void
Loads the Characters's definition, but do not instanciate them .
CharactersManager
  
LoadCharsDisplaysDefinitions(pXMLCharsDispDef:XML):void
Loads the CharacterDisplay's definition without instanciate them.
CharactersManager
Constructor detail
CharactersManager()constructor
public function CharactersManager()

Constructor.

Method detail
GetCharacter()method
public function GetCharacter(pCharacterId:String):AdventureCharacter

Gets an AdventureCharacter by its id

Parameters
pCharacterId:String — an AdventureCharacter Id.

Returns
AdventureCharacter — AdventureCharacter of the id received in pCharacterId, returns null if doesn't exist.
GetCharacterDisplay()method 
public function GetCharacterDisplay(pCharDisplayId:String):AbstractCharacterDisplay

Gets an AbstractCharacterDisplay by id

Parameters
pCharDisplayId:String — a CharacterDisplay Id, usually defined in CharsDisplay.xml

Returns
AbstractCharacterDisplay — AbstractCharacterDisplay of the id received in pCharDisplayId, returns null if doesn't exist.
GetPlayerCharacter()method 
public function GetPlayerCharacter():AdventureCharacter

Gets the current player's character.

Returns
AdventureCharacter
LoadCharsDefinitions()method 
public function LoadCharsDefinitions(pXMLCharsDef:XML):void

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

Parameters
pXMLCharsDef:XML — a XML object with the definition of the Characters.
LoadCharsDisplaysDefinitions()method 
public function LoadCharsDisplaysDefinitions(pXMLCharsDispDef:XML):void

Loads the CharacterDisplay's definition without instanciate them.

Parameters
pXMLCharsDispDef:XML — an XML with the character displays.