CRaPI - Correct Robust and Perfect API

FieldPlayer Members

FieldPlayer overview

Public Instance Constructors

FieldPlayerOverloaded. Initializes a new instance of the FieldPlayer class.

Public Instance Properties

AbsoluteBodyDirectionThe direction of the body relative the opponent goal
AbsoluteFaceDirectionThe direction of the face relative the opponent goal (absolute body direction + head angle)
BodyDirectionDirection of the body
Direction (inherited from GameObject)Direction to the GameObject
DirectionChange (inherited from MobileObject)The direction change
Distance (inherited from GameObject)Distance to the GameObject
DistanceChange (inherited from MobileObject)The distance change
FaceDirectionDirection of the face
Forecasts (inherited from MobileObject)The forecasted positions of the MobileObject
GoalieIf this player is a goalie or not
HeadAngleThe angle of the head
LastSeen (inherited from MobileObject)The server cycle in which this MobileObject was last seen
Name (inherited from GameObject)The name
Position (inherited from FieldObject)The position of the FieldObject
SeenThisCycle (inherited from MobileObject)Gets and sets if the object has been seen this cycle.
SpeedAmount (inherited from MobileObject)The current approximate speed of the MobileObject (distance per cycle)
SpeedDirection (inherited from MobileObject)The current approximate direction of the speed of the MobileObject
TeamNameThe team name
UniformNumberThe number

Public Instance Methods

CalculateSpeed (inherited from MobileObject) Calculates the speed direction and amount of this MobileObject
ClearForecasts (inherited from MobileObject) Clears the forecasts
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ForecastPosition (inherited from MobileObject) Forecast the position of this MobileObject a certain cycles into the future
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.
SetData Sets the data of the FieldPlayer
ToString Returns a string representation of the FieldPlayer

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.

See Also

FieldPlayer Class | TeamYaffa.CRaPI.World.GameObjects Namespace