hockey.api
Interface IObject

All Known Subinterfaces:
IGoalKeeper, IPlayer, IPuck
All Known Implementing Classes:
GoalKeeper, Player, Position

public interface IObject

An object on the ice. Every object in the game has at least a position, heading and speed.


Method Summary
 int getHeading()
          Returns the absolute heading in degrees.
 int getSpeed()
          Returns the speed in cm/s.
 int getX()
          Returns the x-coordinate in cm.
 int getY()
          Returns the y-coordinate in cm.
 

Method Detail

getX

public int getX()
Returns the x-coordinate in cm.

Returns:
the x-coordinate, in cm.

getY

public int getY()
Returns the y-coordinate in cm.

Returns:
the y-coordinate, in cm.

getHeading

public int getHeading()
Returns the absolute heading in degrees.

Returns:
the absolute heading, in degrees.

getSpeed

public int getSpeed()
Returns the speed in cm/s.

Returns:
the speed, in cm/s.