Package | com.whirled.game |
Class | public class GameContentEvent |
Inheritance | GameContentEvent ![]() |
Property | Defined by | ||
---|---|---|---|
contentIdent : String [read-only]
Returns the identifier of the content pack associated with this event.
| GameContentEvent | ||
contentType : String [read-only]
Returns the type of content associated with this event.
| GameContentEvent | ||
playerId : int [read-only]
Returns the identifier of the player to whom this event pertains or 0.
| GameContentEvent |
Property | Defined by | ||
---|---|---|---|
_contentIdent : String | GameContentEvent | ||
_contentType : String | GameContentEvent | ||
_playerId : int | GameContentEvent |
Method | Defined by | ||
---|---|---|---|
GameContentEvent(type:String, contentType:String, contentIdent:String, playerId:int = 0)
| GameContentEvent | ||
clone():Event
| GameContentEvent | ||
toString():String
| GameContentEvent |
Constant | Defined by | ||
---|---|---|---|
ITEM_PACK : String = "item_pack" [static] Used to report item pack related events.
| GameContentEvent | ||
LEVEL_PACK : String = "level_pack" [static] Used to report level pack related events.
| GameContentEvent | ||
PLAYER_CONTENT_ADDED : String = "PlayerContentAdded" [static]
Indicates that the a player has purchased new game content.
| GameContentEvent | ||
PLAYER_CONTENT_CONSUMED : String = "PlayerContentConsumed" [static]
Indicates that the a player has consumed an item pack.
| GameContentEvent |
_contentIdent | property |
protected var _contentIdent:String
contentIdent | property |
contentIdent:String
[read-only]Returns the identifier of the content pack associated with this event.
Implementation public function get contentIdent():String
_contentType | property |
protected var _contentType:String
contentType | property |
contentType:String
[read-only]Returns the type of content associated with this event. Either ITEM_PACK or LEVEL_PACK.
Implementation public function get contentType():String
_playerId | property |
protected var _playerId:int
playerId | property |
playerId:int
[read-only]Returns the identifier of the player to whom this event pertains or 0.
Implementation public function get playerId():int
GameContentEvent | () | constructor |
public function GameContentEvent(type:String, contentType:String, contentIdent:String, playerId:int = 0)
Parameters
type:String |
|
contentType:String |
|
contentIdent:String |
|
playerId:int (default = 0 )
|
clone | () | method |
public override function clone():Event
Returns
Event |
toString | () | method |
public override function toString():String
Returns
String |
ITEM_PACK | constant |
public static const ITEM_PACK:String = "item_pack"
Used to report item pack related events.
LEVEL_PACK | constant |
public static const LEVEL_PACK:String = "level_pack"
Used to report level pack related events.
PLAYER_CONTENT_ADDED | constant |
public static const PLAYER_CONTENT_ADDED:String = "PlayerContentAdded"
Indicates that the a player has purchased new game content.
PLAYER_CONTENT_CONSUMED | constant |
public static const PLAYER_CONTENT_CONSUMED:String = "PlayerContentConsumed"
Indicates that the a player has consumed an item pack. contentType() for this event will always be ITEM_PACK.