CRaPI - Correct Robust and Perfect API

WorldModel Members

WorldModel overview

Public Static Fields

MAXFLAGSThe number of flags used for positioning
NOISEThe noise factor

Public Static Methods

initStaticObjectsSets up the static objects, e.g. flags

Public Instance Constructors

WorldModel ConstructorConstructs a new worldmodel

Public Instance Properties

AllOpponentsGets all known opponents
AllTeamMatesGets all known team-mates
MyPosition The own position
Opponents Gets all opponents.
Self Gets the representation of the player that is associated with this worldmodel.
StaticObjects Returns the static objects, e.g. flags and lines
TeamMates Gets all teammates.
TheBall Returns the ball
UpdatedFrame Returns the simulation frame when the worldmodel was updated.
VagueBall Returns the vague information about the ball, if the last information about the ball from the server wasn't accurate enough to calculate the balls position.

Public Instance Methods

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.
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

BallPositionCalculatedEvent for ball position calculated
FlagsParsedEvent for Flags parsed
IntersectionsCalculatedEvent for Intersections calculated
OpponentsCalculatedEvent for opponents calculated
PlayerCalculatedEvent for player calculated
PositionCalculatedEvent for position of player calculated
PositionUnknownEvent indicating that the players own position is unknown
TeamMatesCalculatedEvent for team mates calculated

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnBallPositionCalculated Generates a BallPositionCalculated event when the position of the ball has calculated
OnFlagsParsed Generates a FlagsParsed event when all flags have been parsed
OnIntersectionsCalculated Generates a IntersectionsCalculated when all intersections have been calculated
OnOpponentsCalculated Generates a OpponentsCalculated event when all have been calculated
OnPlayerCalculated Generates a PlayerCalculated event when the player has been updated
OnPositionCalculated Generates a PositionCalculated event when the players own position has been calculated
OnPositionUnknown Generates a PositionUnknown event when own position is unknown
OnTeamMatesCalculated Generates a TeamMates calculated event when all team mates have been calulated

See Also

WorldModel Class | TeamYaffa.CRaPI.World Namespace