hockey.api
Interface IPlayer

All Superinterfaces:
IObject
All Known Subinterfaces:
IGoalKeeper
All Known Implementing Classes:
GoalKeeper, Player

public interface IPlayer
extends IObject

An IObject representing a player on the ice.

See Also:
IObject

Method Summary
 int getIndex()
          Returns this player's index.
 IObject getStick()
          Returns the current position of the player's stick, as an IObject.
 int getStickAngle()
          Returns the stick relative angle relative to the player's heading, in degrees.
 int getStickR()
          Returns the stick distace from the player's centre, in cm.
 int getStickX()
          Returns the x-coordinate of the player's stick, in cm.
 int getStickY()
          Returns the y-coordinate of the player's stick, in cm.
 boolean hasPuck()
          Returns whether this player has the puck.
 boolean isLeftHanded()
          Returns whether this player is left handed.
 boolean isOpponent()
          Returns whether this player is your opponent in the game.
 
Methods inherited from interface hockey.api.IObject
getHeading, getSpeed, getX, getY
 

Method Detail

getStickAngle

public int getStickAngle()
Returns the stick relative angle relative to the player's heading, in degrees.


getStickR

public int getStickR()
Returns the stick distace from the player's centre, in cm.


getStickX

public int getStickX()
Returns the x-coordinate of the player's stick, in cm.


getStickY

public int getStickY()
Returns the y-coordinate of the player's stick, in cm.


getStick

public IObject getStick()
Returns the current position of the player's stick, as an IObject.


hasPuck

public boolean hasPuck()
Returns whether this player has the puck.


isOpponent

public boolean isOpponent()
Returns whether this player is your opponent in the game.


isLeftHanded

public boolean isLeftHanded()
Returns whether this player is left handed.


getIndex

public int getIndex()
Returns this player's index. The indices are: