A C D F G H I M P R S T U

A

ACCELERATION - Static variable in interface hockey.api.IPlayerControl
Player acceleration, in cm/s^2

C

clamp(double, double, double) - Static method in class hockey.api.Util
Clamps a double value to a given range.
clamp(int, int, int) - Static method in class hockey.api.Util
Clamps an int value to a given range.
clampAbs(double, double) - Static method in class hockey.api.Util
Clamps a double value between zero and a given maximum value.
clampAbs(int, int) - Static method in class hockey.api.Util
Clamps an int value to a given maximum absolute value.
clampPos(double, double) - Static method in class hockey.api.Util
Clamps a double value between zero and a given maximum value.
clampPos(int, int) - Static method in class hockey.api.Util
Clamps an int value between zero and a given maximum value.
collisionHeading(IObject, IObject, int) - Static method in class hockey.api.Util
Calculate the heading for collision from origin to target travelling at speed speed relative to the ice.
cosd(double) - Static method in class hockey.api.Util
Returns the trigonometric cosine of an angle given in degrees.

D

dangle(double, double) - Static method in class hockey.api.Util
Returns the minimal angular distance between two angles in degrees.
datan2(double, double) - Static method in class hockey.api.Util
Returns the angle in degrees to a point (x,y).
datan2(IObject, IObject) - Static method in class hockey.api.Util
Returns the absolute angle in degrees to an IObject with another IObject as origin.
deg(double) - Static method in class hockey.api.Util
Converts an angle measured in radians to the equivalent angle measured in degrees.
dist(double, double) - Static method in class hockey.api.Util
Returns the distance from the origin to a coordinate.
dist(IObject, IObject) - Static method in class hockey.api.Util
Returns the distance between two IObjects.
dist2(double, double) - Static method in class hockey.api.Util
Returns the squared distance from the origin to a double coordinate.
dist2(int, int) - Static method in class hockey.api.Util
Returns the squared distance from the origin to an int coordinate.
dist2(IObject, IObject) - Static method in class hockey.api.Util
Returns the squared distance between two IObjects.

F

faceOff() - Method in class hockey.api.Player
Called before step when there is a face-off.

G

getAimOnStick() - Method in class hockey.api.Player
 
getAimOnStick() - Method in interface hockey.api.IPlayerControl
The aimOnStick property controls whether the endpoint of the stick or the body position should used when moving to a target position.
getGlide() - Method in interface hockey.api.IGoalKeeper
Returns the goal-keeper's sidewards glide speed, in cm/s.
getGlide() - Method in class hockey.api.GoalKeeper
 
getGlove() - Method in interface hockey.api.IGoalKeeper
Returns the current position of the goal-keeper's glove, as an IObject.
getGlove() - Method in class hockey.api.GoalKeeper
 
getGoalKeeper() - Method in interface hockey.api.ITeam
Fetch the team's goal-keeper.
getGoalKeeper(int) - Method in class hockey.api.Player
 
getGoalKeeper(int) - Method in interface hockey.api.IPlayerControl
Gets a goal-keeper from the game.
getHeading() - Method in class hockey.api.Position
 
getHeading() - Method in class hockey.api.Player
 
getHeading() - Method in interface hockey.api.IObject
Returns the absolute heading in degrees.
getHolder() - Method in interface hockey.api.IPuck
Returns the holder of the puck, or null if the puck is not held.
getIndex() - Method in class hockey.api.Player
 
getIndex() - Method in interface hockey.api.IPlayer
Returns this player's index.
getLuckyNumber() - Method in interface hockey.api.ITeam
Returns the team's LUCKY NUMBER in range 0-99999.
getName() - Method in class hockey.api.Player
The name of the player.
getNumber() - Method in class hockey.api.Player
The number of the player.
getPlayer(int) - Method in class hockey.api.Player
 
getPlayer(int) - Method in interface hockey.api.IPlayerControl
Gets a player from the game.
getPlayer(int) - Method in interface hockey.api.ITeam
Fetch a player.
getPuck() - Method in class hockey.api.Player
 
getPuck() - Method in interface hockey.api.IPlayerControl
Gets the puck from the game.
getScore(boolean) - Method in class hockey.api.Player
 
getScore(boolean) - Method in interface hockey.api.IPlayerControl
Gets the current score of one of the teams.
getSecondaryTeamColor() - Method in interface hockey.api.ITeam
A team secondary color for the players' helmets.
getShortName() - Method in interface hockey.api.ITeam
A three to four letter long short name of the team.
getSpeed() - Method in class hockey.api.Position
 
getSpeed() - Method in class hockey.api.Player
 
getSpeed() - Method in interface hockey.api.IObject
Returns the speed in cm/s.
getStick() - Method in class hockey.api.Player
 
getStick() - Method in interface hockey.api.IPlayer
Returns the current position of the player's stick, as an IObject.
getStickAngle() - Method in class hockey.api.Player
 
getStickAngle() - Method in interface hockey.api.IPlayer
Returns the stick relative angle relative to the player's heading, in degrees.
getStickR() - Method in class hockey.api.Player
 
getStickR() - Method in interface hockey.api.IPlayer
Returns the stick distace from the player's centre, in cm.
getStickX() - Method in class hockey.api.Player
 
getStickX() - Method in interface hockey.api.IPlayer
Returns the x-coordinate of the player's stick, in cm.
getStickY() - Method in class hockey.api.Player
 
getStickY() - Method in interface hockey.api.IPlayer
Returns the y-coordinate of the player's stick, in cm.
getTargetGlide() - Method in interface hockey.api.IGoalKeeperControl
Returns the target glide speed.
getTargetGlide() - Method in class hockey.api.GoalKeeper
 
getTargetHeading() - Method in class hockey.api.Player
 
getTargetHeading() - Method in interface hockey.api.IPlayerControl
Returns the target heading, in degrees.
getTargetSpeed() - Method in class hockey.api.Player
 
getTargetSpeed() - Method in interface hockey.api.IPlayerControl
Returns the target speed, in cm/s.
getTargetStickAngle() - Method in class hockey.api.Player
 
getTargetStickAngle() - Method in interface hockey.api.IPlayerControl
Returns the target stick relative angle from player's heading, in degrees.
getTargetStickR() - Method in class hockey.api.Player
 
getTargetStickR() - Method in interface hockey.api.IPlayerControl
Returns the target stick distance from player's centre, in degrees.
getTeamColor() - Method in interface hockey.api.ITeam
A team color for the players' shirts.
getTeamName() - Method in interface hockey.api.ITeam
A full team name.
getTurnSpeed() - Method in class hockey.api.Player
 
getTurnSpeed() - Method in interface hockey.api.IPlayerControl
Returns the turn speed, in degrees/s.
getX() - Method in class hockey.api.Position
 
getX() - Method in class hockey.api.Player
 
getX() - Method in interface hockey.api.IObject
Returns the x-coordinate in cm.
getY() - Method in class hockey.api.Position
 
getY() - Method in class hockey.api.Player
 
getY() - Method in interface hockey.api.IObject
Returns the y-coordinate in cm.
glide(int) - Method in interface hockey.api.IGoalKeeperControl
Accelerate gliding sidewards to the given speed.
glide(int) - Method in class hockey.api.GoalKeeper
 
GoalKeeper - class hockey.api.GoalKeeper.
The goal-keeper in your team should extend this class!
GoalKeeper() - Constructor for class hockey.api.GoalKeeper
 

H

hasPuck() - Method in class hockey.api.Player
 
hasPuck() - Method in interface hockey.api.IPlayer
Returns whether this player has the puck.
hockey.api - package hockey.api
Welcome to the contest, please read the description!

I

IGoalKeeper - interface hockey.api.IGoalKeeper.
An IObject representing a goal-keeper on the ice.
IGoalKeeperControl - interface hockey.api.IGoalKeeperControl.
An interface to goal-keeper control.
init() - Method in class hockey.api.Player
Initialise the player.
IObject - interface hockey.api.IObject.
An object on the ice.
IPlayer - interface hockey.api.IPlayer.
An IObject representing a player on the ice.
IPlayerControl - interface hockey.api.IPlayerControl.
An interface to player control.
IPuck - interface hockey.api.IPuck.
An IObject representing a puck on the ice.
isHeld() - Method in interface hockey.api.IPuck
Returns whether the puck is held by any player.
isLeftHanded() - Method in class hockey.api.Player
Whether the player is left-handed.
isLeftHanded() - Method in interface hockey.api.IPlayer
Returns whether this player is left handed.
isOpponent() - Method in class hockey.api.Player
 
isOpponent() - Method in interface hockey.api.IPlayer
Returns whether this player is your opponent in the game.
ITeam - interface hockey.api.ITeam.
Your team should implement this interface!

M

MAX_GLIDE - Static variable in interface hockey.api.IGoalKeeperControl
Maximum glide and skate speed for goal-keepers.
MAX_SHOT_SPEED - Static variable in interface hockey.api.IPlayerControl
Maximum absolute shot speed, in cm/s
MAX_SPEED - Static variable in interface hockey.api.IPlayerControl
Maximum player speed, in cm/s
MAX_STICK_ANGLE - Static variable in interface hockey.api.IPlayerControl
Maximum stick relative angle from player's heading, in degrees.
MAX_STICK_R - Static variable in interface hockey.api.IPlayerControl
Maximum stick distance from player's centre, in cm.
MAX_THROW_SPEED - Static variable in interface hockey.api.IGoalKeeperControl
Maximum throw and shot speed for goal-keepers.
MAX_TURN_SPEED - Static variable in interface hockey.api.IPlayerControl
Maximum turn speed, in degrees/s
MIN_STICK_ANGLE - Static variable in interface hockey.api.IPlayerControl
Minimum stick relative angle from player's heading, in degrees.
MIN_STICK_R - Static variable in interface hockey.api.IPlayerControl
Minimum stick distance from player's centre, in cm.
moveStick(int, int) - Method in class hockey.api.Player
 
moveStick(int, int) - Method in interface hockey.api.IPlayerControl
Move the stick to a given angle and distance relative to the player.

P

penaltyShot() - Method in class hockey.api.Player
Called before step when the player is about to take a penalty-shot.
Player - class hockey.api.Player.
Every player in your team should extend this class!
Player() - Constructor for class hockey.api.Player
 
Position - class hockey.api.Position.
An IObject implementation that represents a position on the ice.
Position(int, int) - Constructor for class hockey.api.Position
Creates a new Position from a given position, with zero heading and speed.
Position(int, int, int, int) - Constructor for class hockey.api.Position
Creates a new Position from a given position, heading and speed.
Position(IObject) - Constructor for class hockey.api.Position
Creates a new Position from a given IObject's current position, heading and speed.

R

rad(double) - Static method in class hockey.api.Util
Converts an angle measured in degrees to the equivalent angle measured in radians.

S

setAimOnStick(boolean) - Method in class hockey.api.Player
 
setAimOnStick(boolean) - Method in interface hockey.api.IPlayerControl
The aimOnStick property controls whether the endpoint of the stick or the body position should used when moving to a target position.
setDebugPoint(int, int, Color) - Method in class hockey.api.Player
 
setDebugPoint(int, int, Color) - Method in interface hockey.api.IPlayerControl
Sets a point displayed in the HDE.
setGoalKeeperControl(IGoalKeeper, IGoalKeeperControl) - Method in class hockey.api.GoalKeeper
This method is used internally to receive the IGoalKeeper and IGoalKeeperControl associated with this goal-keeper.
setMessage(String) - Method in class hockey.api.Player
 
setMessage(String) - Method in interface hockey.api.IPlayerControl
Sets the message displayed in the HDE.
setPlayerControl(IPlayer, IPlayerControl) - Method in class hockey.api.Player
This method is used internally to receive the IPlayer and IPlayerControl associated with this player.
shoot(int, int) - Method in class hockey.api.Player
 
shoot(int, int) - Method in interface hockey.api.IPlayerControl
Shoot the puck in a given absolute heading and speed.
shoot(int, int, int) - Method in class hockey.api.Player
Shoot the puck towards a given position with a given speed.
shoot(IObject, int) - Method in class hockey.api.Player
Shoot the puck towards a given IObject with a given speed.
showDebugPoint(boolean) - Method in class hockey.api.Player
 
showDebugPoint(boolean) - Method in interface hockey.api.IPlayerControl
Sets whether the debug point should be shown.
sind(double) - Static method in class hockey.api.Util
Returns the trigonometric sine of an angle given in degrees.
skate(int) - Method in class hockey.api.Player
 
skate(int) - Method in interface hockey.api.IPlayerControl
Accelerate to a given speed.
skate(int, int, int) - Method in class hockey.api.Player
Accelerate to a given speed and turn towards a given position with maximum turn speed.
skate(int, int, int) - Method in class hockey.api.GoalKeeper
Accelerate to a given speed and move towards a given position by skating or gliding, but without turning.
skate(IObject, int) - Method in class hockey.api.Player
Accelerate to a given speed and turn towards a given IObject with maximum turn speed.
skate(IObject, int) - Method in class hockey.api.GoalKeeper
 
solve(double, double, double, boolean) - Static method in class hockey.api.Util
Solve ax^2 + 2bx + c = 0 for x.
sqr(double) - Static method in class hockey.api.Util
Returns the square of a double value.
sqr(int) - Static method in class hockey.api.Util
Returns the square of an int value.
step() - Method in class hockey.api.Player
Called every time step.

T

tand(double) - Static method in class hockey.api.Util
Returns the trigonometric tangent of an angle given in degrees.
turn(int, int) - Method in class hockey.api.Player
 
turn(int, int) - Method in interface hockey.api.IPlayerControl
Turn towards a given angle with a given turn speed.
turn(int, int, int) - Method in class hockey.api.Player
Turn towards a given position with a given turn speed.
turn(IObject, int) - Method in class hockey.api.Player
Turn towards a given IObject with a given turn speed.

U

Util - class hockey.api.Util.
The class Util contains methods for performing basic numeric operations such as the elementary squaring, euclidean distance, angle conversion, trigonometric functions in degrees and clamping.
Util() - Constructor for class hockey.api.Util
 

A C D F G H I M P R S T U