BKICK Team Null (Python version)
Public Member Functions | List of all members
CommBlock.CommBlockTurnStart Class Reference

Communicate with server at the beginning of a turn. More...

Inheritance diagram for CommBlock.CommBlockTurnStart:
CommBlock.CommBlock

Public Member Functions

def __init__ (self, connection, verbose)
 Constructor for the class. More...
 
def DoBlock (self)
 Carry out the actual block.
 
- Public Member Functions inherited from CommBlock.CommBlock
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...
 

Additional Inherited Members

- Public Attributes inherited from CommBlock.CommBlock
 connection
 
 verbose
 

Detailed Description

Communicate with server at the beginning of a turn.

Server communicates positions of all players as well as position and velocity of the ball.

Server also communicates the starting event of type tStartEvent.

Constructor & Destructor Documentation

◆ __init__()

def CommBlock.CommBlockTurnStart.__init__ (   self,
  connection,
  verbose 
)

Constructor for the class.

Parameters
connectionPassed on to CommBlock
verbosePassed on to CommBlock

The documentation for this class was generated from the following file: