Packagecom.whirled.contrib.avrg.probe
Classpublic class ServerDefinitions

Encapsulates the function definitions available to an AVRG server agent.



Protected Properties
 PropertyDefined by
  _ctrl : AVRServerGameControl
ServerDefinitions
  _funcs : Object
ServerDefinitions
Public Methods
 MethodDefined by
  
ServerDefinitions(ctrl:AVRServerGameControl)
Creates a new set of server definitions based on a given top-level game control.
ServerDefinitions
  
dump():void
Print out the RPC versions of all server functions suitable for pasting into client definitions.
ServerDefinitions
  
fakeTimeout():void
ServerDefinitions
  
findByName(name:String):FunctionSpec
Lookup a function by scoped name.
ServerDefinitions
Protected Methods
 MethodDefined by
  
ServerDefinitions
  
ServerDefinitions
  
ServerDefinitions
  
ServerDefinitions
  
ServerDefinitions
  
pushPropsFuncs(funcs:Array, targetName:String, instanceGetter:Function):void
ServerDefinitions
Public Constants
 ConstantDefined by
  GAME_EVENTS : Array
[static] Events that apply to a GameSubControlServer.
ServerDefinitions
  NET_EVENTS : Array
[static] Events that apply to a property space (.props member).
ServerDefinitions
  PLAYER_EVENTS : Array
[static] Events that apply to a PlayerSubControlServer.
ServerDefinitions
  ROOM_EVENTS : Array
[static] Events that apply to a RoomSubControlServer.
ServerDefinitions
Property detail
_ctrlproperty
protected var _ctrl:AVRServerGameControl
_funcsproperty 
protected var _funcs:Object
Constructor detail
ServerDefinitions()constructor
public function ServerDefinitions(ctrl:AVRServerGameControl)

Creates a new set of server definitions based on a given top-level game control.

Parameters
ctrl:AVRServerGameControl
Method detail
createGameFuncs()method
protected function createGameFuncs():Array

Returns
Array
createMiscFuncs()method 
protected function createMiscFuncs():Array

Returns
Array
createMobFuncs()method 
protected function createMobFuncs():Array

Returns
Array
createPlayerFuncs()method 
protected function createPlayerFuncs():Array

Returns
Array
createRoomFuncs()method 
protected function createRoomFuncs():Array

Returns
Array
dump()method 
public function dump():void

Print out the RPC versions of all server functions suitable for pasting into client definitions.

fakeTimeout()method 
public function fakeTimeout():void
findByName()method 
public function findByName(name:String):FunctionSpec

Lookup a function by scoped name. This is the category followed by a dot followed by the function name. For example, "room.getPlayerIds".

Parameters
name:String

Returns
FunctionSpec
pushPropsFuncs()method 
protected function pushPropsFuncs(funcs:Array, targetName:String, instanceGetter:Function):voidParameters
funcs:Array
 
targetName:String
 
instanceGetter:Function
Constant detail
GAME_EVENTSconstant
public static const GAME_EVENTS:Array

Events that apply to a GameSubControlServer.

NET_EVENTSconstant 
public static const NET_EVENTS:Array

Events that apply to a property space (.props member).

PLAYER_EVENTSconstant 
public static const PLAYER_EVENTS:Array

Events that apply to a PlayerSubControlServer.

ROOM_EVENTSconstant 
public static const ROOM_EVENTS:Array

Events that apply to a RoomSubControlServer.