A B C D E F G K L M N O P R S V

A

addElement(Observation) - Method in class giavamachia.View
It adds an Observation to the View

B

BOMB_POWER - Static variable in class giavamachia.Consts
 
BOMB_SPEED - Static variable in class giavamachia.Consts
 

C

Consts - class giavamachia.Consts.
 
Consts() - Constructor for class giavamachia.Consts
 

D

DECR_TEMP - Static variable in class giavamachia.Consts
 
DIMX - Static variable in class giavamachia.Consts
 
DIMY - Static variable in class giavamachia.Consts
 
direction - Variable in class giavamachia.Observation
Polar coordinates of the seen object.

E

elementAt(int) - Method in class giavamachia.View
It returns the i-th Observation.
elements() - Method in class giavamachia.View
It return an Enumeration containing all Observations

F

fireBomb(int, int) - Method in class giavamachia.Robot
If Robot is readyToFire(), it fires a bomb addressing a target far distance units in direction direction.
fireLaser() - Method in class giavamachia.Robot
If Robot is readyToFire(), it fires a lasers addressing a target in direction actualDirection().
fireMissile(int) - Method in class giavamachia.Robot
If Robot is readyToFire(), it fires a missile addressing a target in direction direction.

G

getStamina() - Method in class giavamachia.Robot
It returns the vitality of the Robot.
getTemperature() - Method in class giavamachia.Robot
It returns the temperature of the Robot.
getX(int) - Static method in class giavamachia.Consts
It transform x in screen coordinates.
getY(int) - Static method in class giavamachia.Consts
It transform x in screen coordinates.
giavamachia - package giavamachia
 

K

kind - Variable in class giavamachia.Observation
Nature of the seen object.

L

LASER_POWER - Static variable in class giavamachia.Consts
 
LASER_RANGE - Static variable in class giavamachia.Consts
 
LASER_SPEED - Static variable in class giavamachia.Consts
 
look(int) - Method in class giavamachia.Robot
Looks into direction searching for enemies and mines.

M

Main - class giavamachia.Main.
 
Main() - Constructor for class giavamachia.Main
 
main(String[]) - Static method in class giavamachia.Main
 
MAX_N_ROBOTS - Static variable in class giavamachia.Consts
 
MINE - Static variable in class giavamachia.Observation
Object seen is a Mine
MINE_POWER - Static variable in class giavamachia.Consts
 
MINE_TOP_RANGE - Static variable in class giavamachia.Consts
 
MISSILE_POWER - Static variable in class giavamachia.Consts
 
MISSILE_RANGE - Static variable in class giavamachia.Consts
 
MISSILE_SPEED - Static variable in class giavamachia.Consts
 

N

name - Variable in class giavamachia.Observation
Name of the object.
name() - Method in class giavamachia.Robot
The name of the Robot.

O

Observation - class giavamachia.Observation.
An object detected by the Robot.

P

putMine(int) - Method in class giavamachia.Robot
If Robot is readyToFire() and time is greater than zero, it drops a mine that is going to explode time clock ticks later.

R

range - Variable in class giavamachia.Observation
Polar coordinates of the seen object.
readyToFire() - Method in class giavamachia.Robot
 
Robot - class giavamachia.Robot.
Each playable Robot must subclass this class and implement method run().
ROBOT - Static variable in class giavamachia.Observation
Object seen is a Robot
ROBOT_DIM - Static variable in class giavamachia.Consts
 
ROBOT_FIRE_DELAY - Static variable in class giavamachia.Consts
 
ROBOT_LOOK_RANGE - Static variable in class giavamachia.Consts
 
ROBOT_LOOK_SPREAD - Static variable in class giavamachia.Consts
 
ROBOT_MAX_SPEED - Static variable in class giavamachia.Consts
 
ROBOT_MAX_TEMP - Static variable in class giavamachia.Consts
 
ROBOT_STAMINA - Static variable in class giavamachia.Consts
 
ROBOT_TEMP_DECR - Static variable in class giavamachia.Consts
 
Robot() - Constructor for class giavamachia.Robot
Creates a new Robot instance.
Robot(Point) - Constructor for class giavamachia.Robot
Creates a new Robot instance.
rotate(Point, double) - Static method in class giavamachia.Consts
It returns the coordinates of a Point relative to a new reference system aving axes rotated by angle.
run(int, int) - Method in class giavamachia.Robot
Turn the Robot in direction dir and change its speed.

S

sign(int) - Static method in class giavamachia.Consts
It returns the sign of x
size() - Method in class giavamachia.View
It returns the cardinality of the set.
SPEED_FACTOR - Static variable in class giavamachia.Consts
 

V

View - class giavamachia.View.
A set of Observations.
View() - Constructor for class giavamachia.View
It creates a new View instance.

A B C D E F G K L M N O P R S V