Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
F
G
I
J
O
P
R
S
V
A
AbstractPlayer
- Class in
jp.ac.nii.icpc2010.players
The AbstractPlayer class contains functions for querying the position of the players, details on the playfield and the remaining time per round.
AbstractPlayer(int, IPlayField)
- Constructor for class jp.ac.nii.icpc2010.players.
AbstractPlayer
B
BasePlayer
- Class in
jp.ac.nii.icpc2010.players
Players may extend this class to receive some additional convenience functions.
BasePlayer(int, IPlayField)
- Constructor for class jp.ac.nii.icpc2010.players.
BasePlayer
F
FIELD_COIN
- Static variable in interface jp.ac.nii.icpc2010.playfield.
IPlayField
A coin.
FIELD_FREE
- Static variable in interface jp.ac.nii.icpc2010.playfield.
IPlayField
An empty square.
FIELD_WALL
- Static variable in interface jp.ac.nii.icpc2010.playfield.
IPlayField
A wall.
FieldDirection
- Enum in
jp.ac.nii.icpc2010.playfield
This enum represents the different directions that are possible on the playfield.
G
getAdjacentPos(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the list of positions next to the current position.
getCoins()
- Method in interface jp.ac.nii.icpc2010.
ITron
Get the number of coins that this tron has collected.
getDirs()
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the array of directions
getEnemyIds()
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the list of enemy ids
getHeight()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Obtain the height (in units) of the field
getId()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Obtain the ID of this Tron.
getInput()
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Override this method to control the agent.
getInput()
- Method in interface jp.ac.nii.icpc2010.players.
Player
Returns which direction the player wants to move in this turn.
getNumOfPlayers()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Get the number of players in the play field.
getObjectAt(int, int)
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Obtain Object ID at a certain position in the field.
getPlayerId()
- Method in interface jp.ac.nii.icpc2010.
ITron
Get the ID of this tron.
getPlayField()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Obtain the current playfield.
getPosition(int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the position of the player
getPositionById(int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the position of the player
getRandomDirs()
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the list of directions in randomised order
getRemainingRounds()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Return remaining rounds in this match.
getRemainingTime()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Obtain the remaining time to compute the current input.
getRemainingTurns()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Return remaining turns in this round.
getRound()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Return number of current round.
getSafeDirs(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Obtain the array of safe directions
getTrailId()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Get the Object ID of the trail of this player's tron
getTrailIdOf(int)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Return the object ID of the trail of a given tron .
getTronIdOf(int)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Inverse of getTrailIdOf.
getTrons()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Obtain Trons on this playfield.
getTurn()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Return number of current turn.
getWidth()
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Obtain the width (in units) of the field
getX()
- Method in interface jp.ac.nii.icpc2010.
ITron
Get the current X position of this tron.
getX()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Get the X-coordinate of this player's tron.
getXOf(int)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Given a tron id, this method returns the x-coordinate of the specified tron.
getY()
- Method in interface jp.ac.nii.icpc2010.
ITron
Get the current Y position of this tron.
getY()
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Get the Y-coordinate of this player's tron.
getYOf(int)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Given a tron id, this method returns the y-coordinate of the specified tron.
I
id
- Variable in class jp.ac.nii.icpc2010.players.
AbstractPlayer
ID of this player
IPlayField
- Interface in
jp.ac.nii.icpc2010.playfield
Read-only interface to the play field.
isCoin(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is there a coin on the cell?
isEnemyTron(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it a trail of enemies?
isFree(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it a free cell?
isMyTron(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it a trail of my Tron?
isSafe(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it safe to walk on the indicated coordinates? Currently this is true if it is either FIELD_FREE or FIELD_COIN.
isTron(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it a trail?
isWall(int, int)
- Method in class jp.ac.nii.icpc2010.players.
BasePlayer
Is it a wall?
ITron
- Interface in
jp.ac.nii.icpc2010
Every player is represented by a tron on the playing field.
J
jp.ac.nii.icpc2010
- package jp.ac.nii.icpc2010
jp.ac.nii.icpc2010.players
- package jp.ac.nii.icpc2010.players
jp.ac.nii.icpc2010.playfield
- package jp.ac.nii.icpc2010.playfield
O
OBJECT_COIN
- Static variable in class jp.ac.nii.icpc2010.players.
AbstractPlayer
A coin.
OBJECT_FREE
- Static variable in class jp.ac.nii.icpc2010.players.
AbstractPlayer
An empty square.
OBJECT_WALL
- Static variable in class jp.ac.nii.icpc2010.players.
AbstractPlayer
A wall.
P
Player
- Interface in
jp.ac.nii.icpc2010.players
Every player class should implement this interface.
playField
- Variable in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Reference to the field information class.
R
reverse(FieldDirection)
- Static method in enum jp.ac.nii.icpc2010.playfield.
FieldDirection
Return the reverse of a given direction.
S
setFinishTime(long)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Internal framework use only.
setPlayField(IPlayField)
- Method in class jp.ac.nii.icpc2010.players.
AbstractPlayer
Internal framework use only.
stepOne(int, int, FieldDirection)
- Method in interface jp.ac.nii.icpc2010.playfield.
IPlayField
Return the new coordinates of the tron after stepping one step.
V
valueOf(String)
- Static method in enum jp.ac.nii.icpc2010.playfield.
FieldDirection
Returns the enum constant of this type with the specified name.
values()
- Static method in enum jp.ac.nii.icpc2010.playfield.
FieldDirection
Returns an array containing the constants of this enum type, in the order they are declared.
A
B
F
G
I
J
O
P
R
S
V
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes