Module client :: Class ServerNote
[hide private]
[frames] | no frames]

Class ServerNote

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 --+
                                                             |
                                                            ServerNote

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
 
server_start_game(self)
The client stub that gets called when the server starts the game
source code
 
server_add_player(self, pid) source code
 
server_update_health(self, pid, uid, h, tid, vid) source code
 
server_update_location(self, pid, uid, vid) source code
 
server_build_unit(self, pid, tid, vid, uid, buid) source code
 
server_move_troop(self, pid, uid, vid, path) source code
 
client_remove_unit(self, pid, uid) source code
 
server_on_attack(self, tpid, tuid, val) source code
 
server_animate_attack(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 = {'AddPlayer': (<class 'commands.AddPlayer'>...

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)

server_start_game(self)

source code 

The client stub that gets called when the server starts the game

Decorators:
  • @StartGame.responder

server_add_player(self, pid)

source code 
Decorators:
  • @AddPlayer.responder

server_update_health(self, pid, uid, h, tid, vid)

source code 
Decorators:
  • @UpdateHealth.responder

server_update_location(self, pid, uid, vid)

source code 
Decorators:
  • @UpdateLocation.responder

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

source code 
Decorators:
  • @BuildUnit.responder

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

source code 
Decorators:
  • @MoveTroop.responder

client_remove_unit(self, pid, uid)

source code 
Decorators:
  • @RemoveUnit.responder

server_on_attack(self, tpid, tuid, val)

source code 
Decorators:
  • @Attack.responder

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

source code 
Decorators:
  • @AttackAnimation.responder

Class Variable Details [hide private]

_commandDispatch

Value:
{'AddPlayer': (<class 'commands.AddPlayer'>,
               <function server_add_player at 0x10f7b3140>),
 'Attack': (<class 'commands.Attack'>,
            <function server_on_attack at 0x10f7b3410>),
 'AttackAnimation': (<class 'commands.AttackAnimation'>,
                     <function server_animate_attack at 0x10f7b3488>),
 'BuildUnit': (<class 'commands.BuildUnit'>,
               <function server_build_unit at 0x10f7b32a8>),
...