hockey.api
Interface ITeam


public interface ITeam

Your team should implement this interface!

Provides information about a team, and fetches its players.


Method Summary
 GoalKeeper getGoalKeeper()
          Fetch the team's goal-keeper.
 int getLuckyNumber()
          Returns the team's LUCKY NUMBER in range 0-99999.
 Player getPlayer(int index)
          Fetch a player.
 java.awt.Color getSecondaryTeamColor()
          A team secondary color for the players' helmets.
 java.lang.String getShortName()
          A three to four letter long short name of the team.
 java.awt.Color getTeamColor()
          A team color for the players' shirts.
 java.lang.String getTeamName()
          A full team name.
 

Method Detail

getShortName

public java.lang.String getShortName()
A three to four letter long short name of the team.


getTeamName

public java.lang.String getTeamName()
A full team name.


getTeamColor

public java.awt.Color getTeamColor()
A team color for the players' shirts.


getSecondaryTeamColor

public java.awt.Color getSecondaryTeamColor()
A team secondary color for the players' helmets.


getGoalKeeper

public GoalKeeper getGoalKeeper()
Fetch the team's goal-keeper.


getLuckyNumber

public int getLuckyNumber()
Returns the team's LUCKY NUMBER in range 0-99999.


getPlayer

public Player getPlayer(int index)
Fetch a player.

Parameters:
index - the index of the player, in:
  • 1 - Left defender.
  • 2 - Right defender.
  • 3 - Left forward.
  • 4 - Right forward.
  • 5 - Centre forward.