Packagecom.whirled.avrg
Classpublic class AVRGameAvatar

Describes the current state of a player's avatar for an AVRG client or server agent.

See also

RoomSubControlBase.getAvatarInfo()


Public Properties
 PropertyDefined by
  bounds : Rectangle
The bounding rectangle of the avatar, in pixels.
AVRGameAvatar
  entityId : String
The entity id of the player's avatar.
AVRGameAvatar
  isIdle : Boolean
Whether the avatar is currently idle.
AVRGameAvatar
  isMoving : Boolean
Whether the avatar is currently moving.
AVRGameAvatar
  moveSpeed : Number
The avatar's move speed, in pixels per second.
AVRGameAvatar
  orientation : int
The orientation of the avatar, measured in counter-clockwise degrees from front facing.
AVRGameAvatar
  state : String
The avatar's current state.
AVRGameAvatar
  x : Number
The x position of the avatar's registration point, measured in room coordinates.
AVRGameAvatar
  y : Number
The y position of the avatar's registration point, measured in room coordinates.
AVRGameAvatar
  z : Number
The z position of the avatar's registration point, measured in room coordinates.
AVRGameAvatar
Property detail
boundsproperty
public var bounds:Rectangle

The bounding rectangle of the avatar, in pixels. This is in the same coodinates as the paintable area returned by the LocalSubControl. For example an avatar on the left side of a normal room will have a bounds.left near zero.

See also

entityIdproperty 
public var entityId:String

The entity id of the player's avatar.

See also

isIdleproperty 
public var isIdle:Boolean

Whether the avatar is currently idle. Player avatars automatically go into this state after not moving the mouse over the browser or flash player window for a few minutes.

isMovingproperty 
public var isMoving:Boolean

Whether the avatar is currently moving.

NOTE: this value is always false for server agents. Avatars are considered to arrive immediately at their destinations.

moveSpeedproperty 
public var moveSpeed:Number

The avatar's move speed, in pixels per second.

NOTE: this value is not available for server agents. Avatars are considered to arrive immediately at their destinations.

orientationproperty 
public var orientation:int

The orientation of the avatar, measured in counter-clockwise degrees from front facing. If the avatar is facing towards the player's screen, the orientation is 0. Facing to the right, 90°, to the rear 180° and to the left 270°.

stateproperty 
public var state:String

The avatar's current state. These are the same states that appear on the avatar's "Change state" menu.

xproperty 
public var x:Number

The x position of the avatar's registration point, measured in room coordinates.

See also

yproperty 
public var y:Number

The y position of the avatar's registration point, measured in room coordinates.

See also

zproperty 
public var z:Number

The z position of the avatar's registration point, measured in room coordinates.

See also