Packageorg.wak.character.display
Classpublic class SingleBmpCharacterDisplay
InheritanceSingleBmpCharacterDisplay Inheritance AbstractCharacterDisplay Inheritance flash.display.Sprite

A very rustic and simple tiled Bitmap based CharacterDisplay. Don't support animations on turns nor animations in standing positions.



Public Properties
 PropertyDefined by
 Inheritedbaseline : int
AbstractCharacterDisplay
  currentBehaviour : String
[read-only]
SingleBmpCharacterDisplay
 InheritedcurrentTile : IntPoint
AbstractCharacterDisplay
 InheriteddefaultAction : String
AbstractCharacterDisplay
 InheriteddeltaX : Number
Returns the deltaX of the screen coordinates.
AbstractCharacterDisplay
 InheriteddeltaY : Number
Returns the deltaY of the screen coordinates.
AbstractCharacterDisplay
 Inheriteddescription : String
AbstractCharacterDisplay
  dialogX : Number
[read-only]
SingleBmpCharacterDisplay
  dialogY : Number
[read-only]
SingleBmpCharacterDisplay
 InheriteddisplayObject : DisplayObject
AbstractCharacterDisplay
 Inheritedenabled : Boolean
AbstractCharacterDisplay
 InheritedinteractableId : String
AbstractCharacterDisplay
 InheritedinteractionBehaviour : String
AbstractCharacterDisplay
 InheritedinteractionName : String
AbstractCharacterDisplay
 InheritedinteractionPointX : Number
AbstractCharacterDisplay
 InheritedinteractionPointY : Number
AbstractCharacterDisplay
 InheritedisMoving : Boolean
Getter to know if the player is moving through the scene.
AbstractCharacterDisplay
 InheritedmoveSpeed : Number
AbstractCharacterDisplay
 InheritedperspectiveEnabled : Boolean
AbstractCharacterDisplay
 InheritedpfGoal : IntPoint
AbstractCharacterDisplay
 InheritedpfStart : IntPoint
AbstractCharacterDisplay
 Inheritedportrait : MovieClip
Portrait display object of this CharacterDisplay
AbstractCharacterDisplay
 InheritedsceneId : String
AbstractCharacterDisplay
  stageX : Number
[read-only]
SingleBmpCharacterDisplay
  stageY : Number
[read-only]
SingleBmpCharacterDisplay
 InheritedunitaryUse : Boolean
AbstractCharacterDisplay
 InheritedwalkIndex : int
AbstractCharacterDisplay
 InheritedwalkPoints : Array
AbstractCharacterDisplay
Protected Properties
 PropertyDefined by
 InheritedmCurrentTile : IntPoint
AbstractCharacterDisplay
 InheritedmDisplayId : String = ""
AbstractCharacterDisplay
 InheritedmEnabled : Boolean = true
AbstractCharacterDisplay
 InheritedmIsMoving : Boolean
AbstractCharacterDisplay
 InheritedmMoveSpeed : Number = 90
AbstractCharacterDisplay
 InheritedmMovingAngle : Number = 0
AbstractCharacterDisplay
 InheritedmMovingTilesAngle : Number = 0
AbstractCharacterDisplay
 InheritedmPortrait : MovieClip = null
AbstractCharacterDisplay
 InheritedmPrevTile : IntPoint
AbstractCharacterDisplay
 InheritedmUpdatePerspective : Boolean = true
AbstractCharacterDisplay
Public Methods
 MethodDefined by
  
Constructor
SingleBmpCharacterDisplay
 Inherited
Method to test if the param pTile is equal to the current tile where the player is.
AbstractCharacterDisplay
 Inherited
ResetPosition(pX:Number, pY:Number):void
AbstractCharacterDisplay
 Inherited
ResetTilePosition(pX:Number, pY:Number):void
AbstractCharacterDisplay
  
SetAnimBehaviour(pAnimBehaviour:String, pPlays:int = 1, pOnPlayed:Function = null):void
SingleBmpCharacterDisplay
 Inherited
SetCurrentTile(pX:int, pY:int):void
This method is called by the Scene containing this PlayerRenderer to set the current tile inside the background tile map.
AbstractCharacterDisplay
 Inherited
SetInteractionPoint(pX:Number, pY:Number):void
Method to set the interaction point for this Character display.
AbstractCharacterDisplay
 Inherited
AbstractCharacterDisplay
 Inherited
AbstractCharacterDisplay
 Inherited
StartWalk(pOnCompleteHandler:Function = null):void
AbstractCharacterDisplay
 Inherited
StopWalk():void
AbstractCharacterDisplay
  
toString():String
SingleBmpCharacterDisplay
  
Update(event:Event):void
SingleBmpCharacterDisplay
 Inherited
AbstractCharacterDisplay
Protected Methods
 MethodDefined by
  
OnAddedToStage(event:Event):void
SingleBmpCharacterDisplay
  
OnAnimPlaysCompleted(event:Event):void
SingleBmpCharacterDisplay
  
OnRemovedFromStage(event:Event):void
SingleBmpCharacterDisplay
Property detail
currentBehaviourproperty
currentBehaviour:String  [read-only]Implementation
    public function get currentBehaviour():String
dialogXproperty 
dialogX:Number  [read-only]Implementation
    public function get dialogX():Number
dialogYproperty 
dialogY:Number  [read-only]Implementation
    public function get dialogY():Number
stageXproperty 
stageX:Number  [read-only]Implementation
    public function get stageX():Number
stageYproperty 
stageY:Number  [read-only]Implementation
    public function get stageY():Number
Constructor detail
SingleBmpCharacterDisplay()constructor
public function SingleBmpCharacterDisplay(pDef:ICharacterDisplayDefinition)

Constructor

Parameters
pDef:ICharacterDisplayDefinition — ICharacterDisplayDefinition with the data to create the character display.
Method detail
OnAddedToStage()method
protected override function OnAddedToStage(event:Event):voidParameters
event:Event
OnAnimPlaysCompleted()method 
protected function OnAnimPlaysCompleted(event:Event):voidParameters
event:Event
OnRemovedFromStage()method 
protected override function OnRemovedFromStage(event:Event):voidParameters
event:Event
SetAnimBehaviour()method 
public override function SetAnimBehaviour(pAnimBehaviour:String, pPlays:int = 1, pOnPlayed:Function = null):voidParameters
pAnimBehaviour:String
 
pPlays:int (default = 1)
 
pOnPlayed:Function (default = null)
toString()method 
public override function toString():String

Returns
String
Update()method 
public override function Update(event:Event):voidParameters
event:Event