Package | com.whirled.avrg |
Class | public class AVRGamePlayerEvent |
Inheritance | AVRGamePlayerEvent ![]() ![]() |
See also
Property | Defined by | ||
---|---|---|---|
![]() | name : 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 | ||
![]() | value : Object
Retrieves the object 'value' for this event, which is a value
whose meaning is determined by the event type.
| AVRGameControlEvent |
Method | Defined 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 |
Constant | Defined 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 | ||
![]() | MOB_APPEARANCE_CHANGED : String = "mobAppearanceChanged" [static]
An event type dispatched when a spawned MOB has changed appearance.
| AVRGameControlEvent | |
![]() | PLAYER_JOINED_GAME : String = "playerJoinedGame" [static]
An event type dispatched when somebody joined the AVRG.
| AVRGameControlEvent | |
![]() | PLAYER_QUIT_GAME : String = "playerQuitGame" [static]
An event type dispatched when somebody is leaving the AVRG.
| AVRGameControlEvent | |
![]() | SIZE_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 |
playerId | property |
playerId:int
[read-only]Gets the id of the target player whose state is changing.
Implementation public function get playerId():int
AVRGamePlayerEvent | () | constructor |
public function AVRGamePlayerEvent(type:String, playerId:int, name:String = null, value:Object = null, cancelable:Boolean = false)
Creates a new AVRGamePlayerEvent.
Parameterstype:String |
|
playerId:int |
|
name:String (default = null )
|
|
value:Object (default = null )
|
|
cancelable:Boolean (default = false )
|
clone | () | method |
public override function clone():Event
Returns
Event |
toString | () | method |
public override function toString():String
Returns
String |
ENTERED_ROOM | constant |
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_ROOM | constant |
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_COMPLETED | constant |
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