Package | com.whirled.game |
Class | public class GameControl |
Inheritance | GameControl ![]() ![]() |
Subclasses | LoopbackGameControl |
public class MyGame extends Sprite { public var ctrl :GameControl; // Constructor public function MyGame () { ctrl = new GameControl(this); ...
Property | Defined by | ||
---|---|---|---|
game : GameSubControl
[read-only]
Access the 'game' services.
| GameControl | ||
local : LocalSubControl
[read-only]
Access the 'local' services.
| GameControl | ||
net : NetSubControl
[read-only]
Access the 'net' services.
| GameControl | ||
player : PlayerSubControl
[read-only]
Access the 'player' services.
| GameControl | ||
services : ServicesSubControl
[read-only]
Access the 'services' services.
| GameControl |
Method | Defined by | ||
---|---|---|---|
GameControl(disp:DisplayObject, autoReady:Boolean = true)
Creates a GameControl that connects to the Whirled game system.
| GameControl | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener.
| AbstractControl | |
![]() |
doBatch(fn:Function, ... args):void
Execute the specified function as a batch of commands that will be sent to the server
together.
| AbstractControl | |
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just
loaded up our SWF by itself?
| GameControl | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Unregisters an event listener.
| AbstractControl |
Constant | Defined by | ||
---|---|---|---|
AVATAR_SHOP : String = "avatars" [static]
| GameControl | ||
BACKDROP_SHOP : String = "backdrops" [static]
| GameControl | ||
FURNITURE_SHOP : String = "furniture" [static]
| GameControl | ||
ITEM_PACK_SHOP : String = "item_packs" [static]
| GameControl | ||
LEVEL_PACK_SHOP : String = "level_packs" [static]
| GameControl | ||
PET_SHOP : String = "pets" [static]
| GameControl | ||
TOY_SHOP : String = "toys" [static]
| GameControl |
game | property |
game:GameSubControl
[read-only]Access the 'game' services.
Implementation public function get game():GameSubControl
local | property |
local:LocalSubControl
[read-only]Access the 'local' services.
Implementation public function get local():LocalSubControl
net | property |
net:NetSubControl
[read-only]Access the 'net' services.
Implementation public function get net():NetSubControl
player | property |
player:PlayerSubControl
[read-only]Access the 'player' services.
Implementation public function get player():PlayerSubControl
services | property |
services:ServicesSubControl
[read-only]Access the 'services' services.
Implementation public function get services():ServicesSubControl
GameControl | () | constructor |
public function GameControl(disp:DisplayObject, autoReady:Boolean = true)
Creates a GameControl that connects to the Whirled game system.
Parametersdisp:DisplayObject — the display object that is the game's UI.
|
|
autoReady:Boolean (default = true ) — if true, the game will automatically be started when initialization is
complete, if false, the game will not start until all clients call playerReady().
|
See also
isConnected | () | method |
public override function isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just loaded up our SWF by itself?
ReturnsBoolean |
AVATAR_SHOP | constant |
public static const AVATAR_SHOP:String = "avatars"
BACKDROP_SHOP | constant |
public static const BACKDROP_SHOP:String = "backdrops"
FURNITURE_SHOP | constant |
public static const FURNITURE_SHOP:String = "furniture"
ITEM_PACK_SHOP | constant |
public static const ITEM_PACK_SHOP:String = "item_packs"
LEVEL_PACK_SHOP | constant |
public static const LEVEL_PACK_SHOP:String = "level_packs"
PET_SHOP | constant |
public static const PET_SHOP:String = "pets"
TOY_SHOP | constant |
public static const TOY_SHOP:String = "toys"