hockey.api
Interface IPuck

All Superinterfaces:
IObject

public interface IPuck
extends IObject

An IObject representing a puck on the ice.


Method Summary
 IPlayer getHolder()
          Returns the holder of the puck, or null if the puck is not held.
 boolean isHeld()
          Returns whether the puck is held by any player.
 
Methods inherited from interface hockey.api.IObject
getHeading, getSpeed, getX, getY
 

Method Detail

isHeld

public boolean isHeld()
Returns whether the puck is held by any player.

Returns:
true if the puck is held.

getHolder

public IPlayer getHolder()
Returns the holder of the puck, or null if the puck is not held.

Returns:
the holder of the puck, or null if not held.