Module server :: Class ClientNote
[hide private]
[frames] | no frames]

Class ClientNote

source code

    twisted.protocols.basic.StatefulStringProtocol --+        
                                                     |        
twisted.internet.protocol.BaseProtocol --+           |        
                                         |           |        
        twisted.internet.protocol.Protocol --+       |        
                                             |       |        
   twisted.protocols.basic._PauseableMixin --+       |        
                                             |       |        
    twisted.protocols.basic.IntNStringReceiver --+   |        
                                                 |   |        
       twisted.protocols.basic.Int16StringReceiver --+        
                                                     |        
                                        object --+   |        
                                                 |   |        
        twisted.protocols.amp._DescriptorExchanger --+        
                                                     |        
               twisted.protocols.amp.BinaryBoxProtocol --+    
                                                         |    
                                            object --+   |    
                                                     |   |    
                   twisted.protocols.amp.BoxDispatcher --+    
                                                         |    
                                            object --+   |    
                                                     |   |    
                  twisted.protocols.amp.CommandLocator --+    
                                                         |    
                                            object --+   |    
                                                     |   |    
             twisted.protocols.amp.SimpleStringLocator --+    
                                                         |    
                                 twisted.protocols.amp.AMP --+
                                                             |
                                                            ClientNote

hash(x)

Nested Classes [hide private]

Inherited from twisted.protocols.amp.CommandLocator: __metaclass__

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
client_connect(self, ip) source code
 
client_build_unit(self, pid, tid, vid, uid, buid) source code
 
client_move_troop(self, pid, uid, vid, path) source code
 
client_remove_unit(self, pid, uid) source code
 
client_attack_unit(self, pid, uid, tpid, tuid, path) source code

Inherited from twisted.protocols.amp.AMP: __repr__, connectionLost, locateResponder, makeConnection

Inherited from twisted.protocols.amp.BinaryBoxProtocol: __provides__, dataReceived, lengthLimitExceeded, proto_init, proto_key, proto_value, sendBox, unhandledError

Inherited from twisted.protocols.amp.BinaryBoxProtocol (private): _defaultStartTLSResponder, _getPeerCertificate, _lockForSwitch, _prepareTLS, _startTLS, _switchTo, _unlockFromSwitch

Inherited from twisted.protocols.basic.StatefulStringProtocol: __providedBy__, stringReceived

Inherited from twisted.protocols.basic.IntNStringReceiver: recvd, sendString

Inherited from twisted.internet.protocol.Protocol: logPrefix

Inherited from twisted.internet.protocol.BaseProtocol: connectionMade

Inherited from twisted.protocols.basic._PauseableMixin: pauseProducing, resumeProducing, stopProducing

Inherited from twisted.protocols.amp._DescriptorExchanger: fileDescriptorReceived

Inherited from twisted.protocols.amp._DescriptorExchanger (private): _sendFileDescriptor

Inherited from twisted.protocols.amp.BoxDispatcher: ampBoxReceived, callRemote, callRemoteString, dispatchCommand, failAllOutgoing, startReceivingBoxes, stopReceivingBoxes

Inherited from twisted.protocols.amp.BoxDispatcher (private): _answerReceived, _commandReceived, _errorReceived, _nextTag, _safeEmit, _sendBoxCommand

Inherited from twisted.protocols.amp.CommandLocator: lookupFunction

Inherited from twisted.protocols.amp.CommandLocator (private): _wrapWithSerialization

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _commandDispatch = {'AttackAnimation': (<class 'commands.Attac...

Inherited from twisted.protocols.amp.AMP (private): _ampInitialized

Inherited from twisted.protocols.amp.BinaryBoxProtocol: MAX_LENGTH, __implemented__, hostCertificate, innerProtocol, innerProtocolClientFactory, noPeerCertificate

Inherited from twisted.protocols.amp.BinaryBoxProtocol (private): _MAX_KEY_LENGTH, _MAX_VALUE_LENGTH, _currentBox, _currentKey, _justStartedTLS, _locked, _startingTLSBuffer

Inherited from twisted.protocols.basic.StatefulStringProtocol: state

Inherited from twisted.protocols.basic.Int16StringReceiver: prefixLength, structFormat

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Inherited from twisted.protocols.basic._PauseableMixin: paused

Inherited from twisted.protocols.amp.BoxDispatcher (private): _counter, _failAllReason

Inherited from twisted.protocols.amp.SimpleStringLocator: baseDispatchPrefix

Instance Variables [hide private]

Inherited from twisted.protocols.amp.BinaryBoxProtocol: boxReceiver

Inherited from twisted.protocols.amp.BinaryBoxProtocol (private): _keyLengthLimitExceeded

Inherited from twisted.protocols.basic.IntNStringReceiver (private): _compatibilityOffset, _unprocessed

Inherited from twisted.protocols.amp._DescriptorExchanger (private): _descriptors, _receivingDescriptorCounter, _sendingDescriptorCounter

Inherited from twisted.protocols.amp.BoxDispatcher: boxSender, locator

Inherited from twisted.protocols.amp.BoxDispatcher (private): _outstandingRequests

Properties [hide private]

Inherited from twisted.protocols.amp.BinaryBoxProtocol: peerCertificate

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

client_connect(self, ip)

source code 
Decorators:
  • @Connect.responder

client_build_unit(self, pid, tid, vid, uid, buid)

source code 
Decorators:
  • @BuildUnit.responder

client_move_troop(self, pid, uid, vid, path)

source code 
Decorators:
  • @MoveTroop.responder

client_remove_unit(self, pid, uid)

source code 
Decorators:
  • @RemoveUnit.responder

client_attack_unit(self, pid, uid, tpid, tuid, path)

source code 
Decorators:
  • @AttackAnimation.responder

Class Variable Details [hide private]

_commandDispatch

Value:
{'AttackAnimation': (<class 'commands.AttackAnimation'>,
                     <function client_attack_unit at 0x111f36758>),
 'BuildUnit': (<class 'commands.BuildUnit'>,
               <function client_build_unit at 0x110448500>),
 'Connect': (<class 'commands.Connect'>,
             <function client_connect at 0x110448668>),
 'MoveTroop': (<class 'commands.MoveTroop'>,
               <function client_move_troop at 0x1104485f0>),
...