| Package | org.wak.character |
| Class | public class AdventureCharacter |
| Property | Defined by | ||
|---|---|---|---|
| characterDisplay : AbstractCharacterDisplay
The character display representing this player.
| AdventureCharacter | ||
| characterId : String [read-only]
The character id.
| AdventureCharacter | ||
| description : String [read-only]
| AdventureCharacter | ||
| interactionName : String [read-only]
The character's name.
| AdventureCharacter | ||
| inventory : Inventory
[read-only]
The character's inventory.
| AdventureCharacter | ||
| perspectiveEnabled : Boolean [read-only]
Enable or disable the perspective scaling in the scene.
| AdventureCharacter | ||
| sceneId : String
The id of the Scene where this character is.
| AdventureCharacter | ||
| speechColor : uint [read-only]
The color of the text when this character speaks.
| AdventureCharacter | ||
| Method | Defined by | ||
|---|---|---|---|
|
AdventureCharacter(pCharDef:ICharacterDefinition)
Constructor
| AdventureCharacter | ||
|
MoveTo(pSceneX:Number, pSceneY:Number, pOnCompleteFunc:Function = null):void
Moves the character to the coordinates over the scene.
| AdventureCharacter | ||
|
Say(pText:String, pOnComplete:Function = null):void
Makes the character speak.
| AdventureCharacter | ||
| characterDisplay | property |
characterDisplay:AbstractCharacterDisplay [read-write]The character display representing this player.
Implementation public function get characterDisplay():AbstractCharacterDisplay
public function set characterDisplay(value:AbstractCharacterDisplay):void
| characterId | property |
characterId:String [read-only]The character id.
Implementation public function get characterId():String
| description | property |
description:String [read-only]Implementation
public function get description():String
| interactionName | property |
interactionName:String [read-only]The character's name.
Implementation public function get interactionName():String
| inventory | property |
inventory:Inventory [read-only]The character's inventory.
Implementation public function get inventory():Inventory
| perspectiveEnabled | property |
perspectiveEnabled:Boolean [read-only]Enable or disable the perspective scaling in the scene.
Implementation public function get perspectiveEnabled():Boolean
| sceneId | property |
sceneId:String [read-write]The id of the Scene where this character is.
Implementation public function get sceneId():String
public function set sceneId(value:String):void
| speechColor | property |
speechColor:uint [read-only]The color of the text when this character speaks.
Implementation public function get speechColor():uint
| AdventureCharacter | () | constructor |
public function AdventureCharacter(pCharDef:ICharacterDefinition)Constructor
ParameterspCharDef:ICharacterDefinition — the data to define an adventure character.
|
| MoveTo | () | method |
public function MoveTo(pSceneX:Number, pSceneY:Number, pOnCompleteFunc:Function = null):voidMoves the character to the coordinates over the scene. Usually walking through.
ParameterspSceneX:Number — horizontal coordinate on the scene.
|
|
pSceneY:Number — vertical coordinate on the scene
|
|
pOnCompleteFunc:Function (default = null) |
| Say | () | method |
public function Say(pText:String, pOnComplete:Function = null):voidMakes the character speak.
ParameterspText:String — Text to say
|
|
pOnComplete:Function (default = null) — function reference to call when the task is completed.
|