Packagecom.whirled.avrg
Classpublic class AVRGamePlayerEvent
InheritanceAVRGamePlayerEvent Inheritance AVRGameControlEvent Inheritance flash.events.Event

Conveys information about a change to the state of a particular player in an AVR game.

See also

PlayerSubControlClient
PlayerSubControlServer


Public Properties
 PropertyDefined by
 Inheritedname : String
Retrieves the 'name' for this event, which is a String value whose meaning is determined by the event type.
AVRGameControlEvent
  playerId : int
[read-only] Gets the id of the target player whose state is changing.
AVRGamePlayerEvent
 Inheritedvalue : Object
Retrieves the object 'value' for this event, which is a value whose meaning is determined by the event type.
AVRGameControlEvent
Public Methods
 MethodDefined by
  
AVRGamePlayerEvent(type:String, playerId:int, name:String = null, value:Object = null, cancelable:Boolean = false)
Creates a new AVRGamePlayerEvent.
AVRGamePlayerEvent
  
clone():Event
AVRGamePlayerEvent
  
toString():String
AVRGamePlayerEvent
Public Constants
 ConstantDefined by
  ENTERED_ROOM : String = "enteredRoom"
[static] An event type dispatched when the player has entered a new room.
AVRGamePlayerEvent
  LEFT_ROOM : String = "leftRoom"
[static] An event type dispatched when the player leaves a room.
AVRGamePlayerEvent
 InheritedMOB_APPEARANCE_CHANGED : String = "mobAppearanceChanged"
[static] An event type dispatched when a spawned MOB has changed appearance.
AVRGameControlEvent
 InheritedPLAYER_JOINED_GAME : String = "playerJoinedGame"
[static] An event type dispatched when somebody joined the AVRG.
AVRGameControlEvent
 InheritedPLAYER_QUIT_GAME : String = "playerQuitGame"
[static] An event type dispatched when somebody is leaving the AVRG.
AVRGameControlEvent
 InheritedSIZE_CHANGED : String = "sizeChanged"
[static] An event type dispatched when the control has been resized.
AVRGameControlEvent
  TASK_COMPLETED : String = "taskCompleted"
[static] An event type dispatched when the player receives some coins.
AVRGamePlayerEvent
Property detail
playerIdproperty
playerId:int  [read-only]

Gets the id of the target player whose state is changing.

Implementation
    public function get playerId():int
Constructor detail
AVRGamePlayerEvent()constructor
public function AVRGamePlayerEvent(type:String, playerId:int, name:String = null, value:Object = null, cancelable:Boolean = false)

Creates a new AVRGamePlayerEvent.

Parameters
type:String
 
playerId:int
 
name:String (default = null)
 
value:Object (default = null)
 
cancelable:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event
toString()method 
public override function toString():String

Returns
String
Constant detail
ENTERED_ROOMconstant
public static const ENTERED_ROOM:String = "enteredRoom"

An event type dispatched when the player has entered a new room.
name - not used
value :int - the id of the scene entered

LEFT_ROOMconstant 
public static const LEFT_ROOM:String = "leftRoom"

An event type dispatched when the player leaves a room.
key - not used
value :int - the id of the scene left

TASK_COMPLETEDconstant 
public static const TASK_COMPLETED:String = "taskCompleted"

An event type dispatched when the player receives some coins.
name - the id of the task that was completed
value :int - the amount of coins awarded