CRaPI - Correct Robust and Perfect API

Player Members

Player overview

Public Instance Constructors

PlayerOverloaded. Initializes a new instance of the Player class.

Public Instance Properties

BallIsCatchable Determines if the ball is catchable.
BallIsKickable Determines if the ball is kickable.
Clock The internal clock
CommandQueue The current CommandQueue
IsGoalie Goalie or not
LastErrorThe last error that has occured.
OpponentScoreThe current score of the opponent team
OwnScoreThe current score of my team
PlayerTypes The player types
PlayMode The current PlayMode
PreviousCommandQueue The previous CommandQueue
PreviousSenseBody The previous SenseBody
ScoreDifferanceThe differance between own score and opponent score
SenseBody The SenseBody
ServerParam The server parameters
StartPointThe players starting point.
TeamName Team name
TeamSide Side [Left|Right]
UniformNumber Uniform number
World The WorldModel of this Player

Public Instance Methods

ConnectOverloaded. Connects the player to a RoboCup server
Disconnect Disconnects the Player from the server
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
PlayGame The Thread entry point and main loop for the player.
ReConnect Reconnects the player to the previous server
Send Sends the commands stored in the command queue
StartUp Connects to the server and receives player_type, player_param, server_param from the server.
ToString Creates a string representation of the Player

Public Instance Events

AfterCoachMessageEvent indicating that a CoachMessage has been handled
AfterNewCycleEvent indicating that a new cycle has started
AfterPlayerMessageEvent indicating that a PlayerMessage has been handled
AfterRefereeMessageEvent indicating that a RefereeMessage has been handled
AfterWorldModelUpdateEvent indicating that the WorldModel is updated
BeforeCoachMessageEvent indicating that a CoachMessage is to be handled
BeforeNewCycleEvent indicating that a new cycle is coming once the clock has been syncronized
BeforePlayerMessageEvent indicating that a PlayerMessage is to handled
BeforeRefereeMessageEvent indicating that a RefereeMessage is to be handled
BeforeWorldModelUpdateEvent indicating that the WorldModel is to be updated
PlayerParamReceivedEvent indicating that a PlayerParam has been handled
ServerParamReceivedEvent indicating that a ServerParam has been handled, and the worldmodel is updated.

Protected Instance Methods

Finalize The finalizer disconnects the client from the server.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnAfterCoachMessage Generates an AfterCoachMessage event
OnAfterNewCycle Generates an AfterNewCycle event
OnAfterPlayerMessage Generates an AfterPlayerMessage event
OnAfterRefereeMessage Generates an AfterRefereeMessage event
OnAfterWorldModelUpdate Generates an AfterWorldModelUpdate event
OnBeforeCoachMessage Generates a BeforeCoachMessage event
OnBeforeNewCycle Generates a BeforeNewCycle event
OnBeforePlayerMessage Generates a BeforePlayerMessage event
OnBeforeRefereeMessage Generates a BeforeRefereeMessage event
OnBeforeWorldModelUpdate Generates a BeforeWorldModelUpdate event
OnPlayerParamReceived Generates a PlayerParamReceived event
OnServerParamReceived Generates a ServerParamReceived event

See Also

Player Class | TeamYaffa.CRaPI Namespace