Packagecom.whirled.contrib.platformer.net
Classpublic class ThrottlingMessageManager
InheritanceThrottlingMessageManager Inheritance MessageManager Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
 InheritedmsgCount : int
MessageManager
 InheritedrecTicks : int
MessageManager
Protected Properties
 PropertyDefined by
 Inherited_gameCtrl : GameControl
MessageManager
  _keepAlive : int
ThrottlingMessageManager
 Inherited_lastRec : int
MessageManager
  _lastSent : int
ThrottlingMessageManager
  _lastTrackAdjust : int
ThrottlingMessageManager
  _maxRate : int
ThrottlingMessageManager
  _minRate : int
ThrottlingMessageManager
 Inherited_msgTypes : Map
MessageManager
  _queue : QueueMessage
ThrottlingMessageManager
 Inherited_rec : int
MessageManager
  _timer : Timer
ThrottlingMessageManager
  _trackAdjustRate : int
ThrottlingMessageManager
  _tracker : String
ThrottlingMessageManager
  _trackReceived : int
ThrottlingMessageManager
Public Methods
 MethodDefined by
  
ThrottlingMessageManager(gameCtrl:GameControl, rate:int, keepAlive:int)
ThrottlingMessageManager
 Inherited
addMessageType(messageClass:Class):void
MessageManager
  
flushQueue():void
ThrottlingMessageManager
 Inherited
getMessage(name:String, bytes:ByteArray):GameMessage
MessageManager
 Inherited
ifServerSend(createMsg:Function, ... args):void
Sends the GameMessage only if being run on the server.
MessageManager
 Inherited
notLocalSend(createMsg:Function, ... args):void
Sends the GameMessage if the game isn't run locally.
MessageManager
  
ThrottlingMessageManager
  
shutdown():void
ThrottlingMessageManager
  
trackRateAgainstId(tracker:String = null, adjustRate:int = 0, maxRate:int = 0):void
ThrottlingMessageManager
Protected Methods
 MethodDefined by
 Inherited
MessageManager
  
onMessageReceived(e:MessageReceivedEvent):void
ThrottlingMessageManager
  
onTimer(... ignored):void
ThrottlingMessageManager
Protected Constants
 ConstantDefined by
  DEFAULT_KEEP_ALIVE : int = 10000
[static]
ThrottlingMessageManager
  TRACK_RATE : int = 300
[static]
ThrottlingMessageManager
Property detail
_keepAliveproperty
protected var _keepAlive:int
_lastSentproperty 
protected var _lastSent:int
_lastTrackAdjustproperty 
protected var _lastTrackAdjust:int
_maxRateproperty 
protected var _maxRate:int
_minRateproperty 
protected var _minRate:int
_queueproperty 
protected var _queue:QueueMessage
_timerproperty 
protected var _timer:Timer
_trackAdjustRateproperty 
protected var _trackAdjustRate:int
_trackerproperty 
protected var _tracker:String
_trackReceivedproperty 
protected var _trackReceived:int
Constructor detail
ThrottlingMessageManager()constructor
public function ThrottlingMessageManager(gameCtrl:GameControl, rate:int, keepAlive:int)Parameters
gameCtrl:GameControl
 
rate:int
 
keepAlive:int
Method detail
flushQueue()method
public function flushQueue():void
onMessageReceived()method 
protected override function onMessageReceived(e:MessageReceivedEvent):voidParameters
e:MessageReceivedEvent
onTimer()method 
protected function onTimer(... ignored):voidParameters
... ignored
sendMessage()method 
public override function sendMessage(msg:GameMessage):voidParameters
msg:GameMessage
shutdown()method 
public override function shutdown():void
trackRateAgainstId()method 
public function trackRateAgainstId(tracker:String = null, adjustRate:int = 0, maxRate:int = 0):voidParameters
tracker:String (default = null)
 
adjustRate:int (default = 0)
 
maxRate:int (default = 0)
Constant detail
DEFAULT_KEEP_ALIVEconstant
protected static const DEFAULT_KEEP_ALIVE:int = 10000
TRACK_RATEconstant 
protected static const TRACK_RATE:int = 300