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

Declares all of the code objects available in the AVRG client and server api. Note that the server functions declared here are proxies that will send a message to the server requesting that it call the function and send a reply with the return value. The proxy functions are auto generated and the real functions are defined in ServerDefinitions.

See also

com.whirled.contrib.avrg.probe.ServerDefinitions


Protected Properties
 PropertyDefined by
  _client : Object
Definitions
  _ctrl : AVRGameControl
Definitions
  _makeDecoration : Function
Definitions
  _server : Object
Definitions
Public Methods
 MethodDefined by
  
Definitions(ctrl:AVRGameControl, makeDecoration:Function)
Creates new definitions.
Definitions
  
addListenerToAll(listener:Function):void
Add the given event listener function to all available event types and dispatchers.
Definitions
  
getControls(server:Boolean):Array
Get the categories of functions available on the AVRG client.
Definitions
  
getFuncs(server:Boolean, ctrlName:String):Array
Get the functions for a given category.
Definitions
  
removeListenerFromAll(listener:Function):void
Removes the given event listener function from all available event types and dispatchers.
Definitions
Protected Methods
 MethodDefined by
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
Definitions
  
enumEvents(functor:Function):void
Definitions
  
introspectControl(ctrl:Object):Object
TODO My idea was: introspect and figure out all the controls and functions on each.
Definitions
  
isFunctionSuppressed(name:String):Boolean
Would we like to suppress a function with the specified name from our autogenerated list of functions?
Definitions
  
proxy(prefix:String, name:String):Function
Definitions
  
pushPropsFuncs(funcs:Array, props:PropertyGetSubControl):void
Definitions
  
pushPropsSetFuncs(funcs:Array, props:PropertySubControl):void
Definitions
Public Constants
 ConstantDefined by
  CLIENT_EVENTS : Array
[static] All events that may occur on LocalSubControl.
Definitions
  GAME_EVENTS : Array
[static] All events that may occur on GameSubControlClient.
Definitions
  NET_EVENTS : Array
[static] All events that may occur on a property space.
Definitions
  PARTY_EVENTS : Array
[static] All events that may occur on PartySubControl.
Definitions
  PLAYER_EVENTS : Array
[static] All events that may occur on PlayerSubControlClient.
Definitions
  ROOM_EVENTS : Array
[static] All events that may occur on RoomSubControlClient.
Definitions
Property detail
_clientproperty
protected var _client:Object
_ctrlproperty 
protected var _ctrl:AVRGameControl
_makeDecorationproperty 
protected var _makeDecoration:Function
_serverproperty 
protected var _server:Object
Constructor detail
Definitions()constructor
public function Definitions(ctrl:AVRGameControl, makeDecoration:Function)

Creates new definitions.

Parameters
ctrl:AVRGameControl — the game control to use for our closures
 
makeDecoration:Function — the closure to use when creating a decoration
Method detail
addListenerToAll()method
public function addListenerToAll(listener:Function):void

Add the given event listener function to all available event types and dispatchers.

Parameters
listener:Function
createAgentFuncs()method 
protected function createAgentFuncs():Array

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

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

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

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

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

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

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

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

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

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

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

Returns
Array
enumEvents()method 
protected function enumEvents(functor:Function):voidParameters
functor:Function
getControls()method 
public function getControls(server:Boolean):Array

Get the categories of functions available on the AVRG client.

Parameters
server:Boolean — if set, return only server categories, otherwise only client categories

Returns
Array — an array of strings, one per category of function
getFuncs()method 
public function getFuncs(server:Boolean, ctrlName:String):Array

Get the functions for a given category.

Parameters
server:Boolean
 
ctrlName:String

Returns
Array — an Array of FunctionSpec instances.
introspectControl()method 
protected function introspectControl(ctrl:Object):Object

TODO My idea was: introspect and figure out all the controls and functions on each. These would be lacking in nice parameter names, but then, where we have methods defined that matched the actual definitions, we could drop in the nice names. Rabbit hole. Punting.

Parameters
ctrl:Object

Returns
Object
isFunctionSuppressed()method 
protected function isFunctionSuppressed(name:String):Boolean

Would we like to suppress a function with the specified name from our autogenerated list of functions?

Parameters
name:String

Returns
Boolean
proxy()method 
protected function proxy(prefix:String, name:String):FunctionParameters
prefix:String
 
name:String

Returns
Function
pushPropsFuncs()method 
protected function pushPropsFuncs(funcs:Array, props:PropertyGetSubControl):voidParameters
funcs:Array
 
props:PropertyGetSubControl
pushPropsSetFuncs()method 
protected function pushPropsSetFuncs(funcs:Array, props:PropertySubControl):voidParameters
funcs:Array
 
props:PropertySubControl
removeListenerFromAll()method 
public function removeListenerFromAll(listener:Function):void

Removes the given event listener function from all available event types and dispatchers.

Parameters
listener:Function
Constant detail
CLIENT_EVENTSconstant
public static const CLIENT_EVENTS:Array

All events that may occur on LocalSubControl.

GAME_EVENTSconstant 
public static const GAME_EVENTS:Array

All events that may occur on GameSubControlClient.

NET_EVENTSconstant 
public static const NET_EVENTS:Array

All events that may occur on a property space.

PARTY_EVENTSconstant 
public static const PARTY_EVENTS:Array

All events that may occur on PartySubControl.

PLAYER_EVENTSconstant 
public static const PLAYER_EVENTS:Array

All events that may occur on PlayerSubControlClient.

ROOM_EVENTSconstant 
public static const ROOM_EVENTS:Array

All events that may occur on RoomSubControlClient.