A B C D E G H I M N O P R S W X Y

A

addPackage(Package) - Method in class Command
Add a package for the PICK or DROP commands
arguments() - Method in class Command
returns an iterator of packages arguments

B

bid - Variable in class Command
Cost of executing this command
bid() - Method in class Command
Returns the bid of the command

C

c_capacity - Variable in class Robot
The carrying capacity of this robot
carryingCapacity() - Method in class Robot
Returns the carrying capacity of the robot
comm - Variable in class Player
The Communications manager
Command - class Command.
A command, which one is, and all the arguments of it.
Command.PackageBox - class Command.PackageBox.
a little wrapper class
Command.PackageBox(Command) - Constructor for class Command.PackageBox
 
Command() - Constructor for class Command
Default Constructor
Command(int, int, int, int) - Constructor for class Command
 
commands - Static variable in class Command
 
connected() - Method in class Player.Communicator
check is connected

D

dirs - Static variable in class Player
 
DROP - Static variable in class Command
Drop command

E

EAST - Static variable in class Player
 
execute(Command) - Method in class Robot
executes the given command

G

gameMainLoop() - Method in class Player
 
GameMap - class GameMap.
The map of the game field, here we do a little tradeoff time-memory in favor of time
GameMap(int, int, char[][]) - Constructor for class GameMap
Constructs a new game map
getAt(int, int) - Method in class GameMap
get whats inside the (x, y) position
getBoard() - Method in class Player.Communicator
Get the board from the server
getConfiguration() - Method in class Player.Communicator
Get the robot's configuration
getServerResponse() - Method in class Player.Communicator
get standar responses from server..

H

height - Variable in class GameMap
height
height() - Method in class GameMap
get height
HOME_BASE - Static variable in class GameMap
Home base tile

I

id - Variable in class IdentifiedWithPosition
the integer with wich we're identified :)
id() - Method in class IdentifiedWithPosition
Returns the identifier asociated with this object
IdentifiedWithPosition - class IdentifiedWithPosition.
This class is as the name says identified, it has an integer as identifier, its common to the robot and the packages classes.
IdentifiedWithPosition() - Constructor for class IdentifiedWithPosition
Default constructor
IdentifiedWithPosition(int) - Constructor for class IdentifiedWithPosition
Makes a new Object with the specified id
IdentifiedWithPosition(int, int, int) - Constructor for class IdentifiedWithPosition
Make a new identified object with position (x, y)
in - Variable in class Player.Communicator
The input stream associated with the socket

M

Main - class Main.
This is the where it all starts...
Main() - Constructor for class Main
 
main(String[]) - Static method in class Main
 
map - Variable in class GameMap
the map
map - Variable in class Player
The map
money - Variable in class Robot
the money
money() - Method in class Robot
returns the money of the robot
MOVE - Static variable in class Command
Move command

N

NORTH - Static variable in class Player
Directions

O

out - Variable in class Player.Communicator
The output stream associated with the socket

P

Package - class Package.
This class is the abstraction of a game package
Package() - Constructor for class Package
Default constructor
Package(int, int) - Constructor for class Package
makes a package with given id and weight
Package(int, int, int, int) - Constructor for class Package
makes a new package with the given parameters
packs - Variable in class Player
The package the robot is carrying
packs() - Method in class Command
 
pb - Variable in class Command
A place to store packages
PICK - Static variable in class Command
Pick command
PLAIN - Static variable in class GameMap
Plain tile
play(String, int) - Method in class Player
The function where it all starts
Player - class Player.
This class is the player, it has the robot and tries to follow whats happening....
Player.Communicator - class Player.Communicator.
This is the class that is the bridge between the player and the server
Player.Communicator(Player, String, int) - Constructor for class Player.Communicator
Constructs a communicator
Player() - Constructor for class Player
Constructs a new Player

R

requestJoinGame() - Method in class Player.Communicator
Request joinning the game
robot - Variable in class Player
The robot
Robot - class Robot.
The robot of the actual player (the program :) )
Robot() - Constructor for class Robot
Default constructor
Robot(int, int, int) - Constructor for class Robot
makes a robot with the given id, carrying capacity and some money.
Robot(int, int, int, int, int) - Constructor for class Robot
make a new robot with all the given parameters

S

s - Variable in class Player.Communicator
The communication's channel
sendCommand(Command, String) - Method in class Player.Communicator
send the command to the server
setBid(int) - Method in class Command
sets the bid of the command
setCarryingCapacity(int) - Method in class Robot
sets the carrying capacity of the robot
setId(int) - Method in class IdentifiedWithPosition
 
setMoney(int) - Method in class Robot
sets the money of the robot
setPos(int, int) - Method in class IdentifiedWithPosition
Sets the new position of the Object, (x, y) both
setWeight(int) - Method in class Package
sets the weight of the package
setX(int) - Method in class IdentifiedWithPosition
Sets the x coordinate of the Object.
setY(int) - Method in class IdentifiedWithPosition
Sets the y coordinate of the Object.
SimpleRobot - class SimpleRobot.
The basic stuff of a robot.
SimpleRobot(int, int, int) - Constructor for class SimpleRobot
Makes a new robot with basic stuff
SOUTH - Static variable in class Player
 

W

w - Variable in class Package
The weight of the pack
WALL - Static variable in class GameMap
Wall tile
WATER - Static variable in class GameMap
Water tile
weight() - Method in class Package
Returns the weight of the package
WEST - Static variable in class Player
 
width - Variable in class GameMap
width
width() - Method in class GameMap
get width

X

x_pos - Variable in class IdentifiedWithPosition
The x cordinate of the Object
x() - Method in class IdentifiedWithPosition
get the X position of the Object

Y

y_pos - Variable in class IdentifiedWithPosition
The y cordinate of the Object
y() - Method in class IdentifiedWithPosition
get the Y position of the Object

A B C D E G H I M N O P R S W X Y