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

Communication with server at the end of a turn. More...

Inheritance diagram for CommBlock.CommBlockTurnEnd:
CommBlock.CommBlock

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.
 
- 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...
 

Public Attributes

 scoreA
 
 scoreB
 
- Public Attributes inherited from CommBlock.CommBlock
 connection
 
 verbose
 

Detailed Description

Communication with server at the end of a turn.

Receive information whether any special event (keeper catch etc.) has occured during the turn.

Constructor & Destructor Documentation

◆ __init__()

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

Constructor for the class.

Parameters
connectionPassed on to CommBlock
verbosePassed on to CommBlock

Member Function Documentation

◆ DoBlock()

def CommBlock.CommBlockTurnEnd.DoBlock (   self)

Carry out the block.

Returns
End event.

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