BKICK Team Null (Python version)
|
Communication with server at the end of a turn. More...
Public Member Functions | |
def | __init__ (self, connection, verbose) |
Constructor for the class. More... | |
def | DoBlock (self) |
Carry out the block. More... | |
def | ScoreA (self) |
Returns the number of goals scored by A. | |
def | ScoreB (self) |
Returns the number of goals scored by B. | |
![]() | |
def | __init__ (self, connection, verbose) |
Basic constructor for a communication block. More... | |
def | HandleBlockEnd (self, blockName, msg) |
Check if a block has ended properly, otherwise display error and exit. More... | |
def | HandleEndBlockError (self, blockName) |
Routine to handle errors which may be returned by the server at the end of a block. More... | |
def | ReadAndCheck (self, expectedMessage) |
Read a messsage from the server and check whether it conforms with the expected message. More... | |
Public Attributes | |
scoreA | |
scoreB | |
![]() | |
connection | |
verbose | |
Communication with server at the end of a turn.
Receive information whether any special event (keeper catch etc.) has occured during the turn.
def CommBlock.CommBlockTurnEnd.__init__ | ( | self, | |
connection, | |||
verbose | |||
) |
Constructor for the class.
connection | Passed on to CommBlock |
verbose | Passed on to CommBlock |
def CommBlock.CommBlockTurnEnd.DoBlock | ( | self | ) |
Carry out the block.