A B C D E F G I L M O P R S T V X Y 

A

abort() - Method in interface truck.TruckActor
Immediately stop performing this truck's action.
Activity - Enum in truck
Indicates, to an observer, what a truck appears to be doing.
add(Coordinates) - Method in class truck.Coordinates
 
add(double, double) - Method in class truck.Coordinates
 
addPolar(double, double) - Method in class truck.Coordinates
 
attack(Truck) - Method in interface truck.TruckActor
Attack a nearby enemy truck (the target).
attackHitTarget - Variable in class truck.AttackResult
True if you hit the target on this attack; false if you missed.
AttackResult - Class in truck
 
AttackResult(boolean, boolean, int) - Constructor for class truck.AttackResult
 

B

Battlefield - Interface in truck
Represents the battlefield -- the part of it that the truck can see.
bearing - Variable in exception truck.event.MoveBlocked
 
blockage - Variable in exception truck.event.MoveBlocked
 
broadcast(Object) - Method in interface truck.GameEngine
Send a message to all the other trucks on this team.
BULLDOZER - Static variable in interface truck.Truck
 

C

CannotPerformAction - Exception in truck.event
 
CannotPerformAction() - Constructor for exception truck.event.CannotPerformAction
 
CannotPerformAction(String) - Constructor for exception truck.event.CannotPerformAction
 
combat(CombatEvent) - Method in interface truck.event.CombatEvent.Listener
 
CombatEvent - Class in truck.event
 
CombatEvent(Truck, String, Truck) - Constructor for class truck.event.CombatEvent
 
CombatEvent.Listener - Interface in truck.event
 
Coordinates - Class in truck
Indicates a point location on a 2-D plane, or a vector in that plane.
Coordinates(double, double) - Constructor for class truck.Coordinates
 
coordinates - Variable in class truck.ScanResult
The center of the circle most likely to contain the item.

D

damageToTarget - Variable in class truck.AttackResult
The amount of damage (in hit points) your attack did.
deploy(DeploymentEvent) - Method in interface truck.event.DeploymentEvent.Listener
 
DeploymentEvent - Class in truck.event
The player has deployed this truck into the battle.
DeploymentEvent(Object, TruckActor, GameEngine) - Constructor for class truck.event.DeploymentEvent
 
DeploymentEvent(TruckActor, GameEngine) - Constructor for class truck.event.DeploymentEvent
 
DeploymentEvent.Listener - Interface in truck.event
 
destroy(Truck) - Method in interface truck.TruckActor
Move this truck toward the specified target and attacks repeatedly when within range.
dig() - Method in interface truck.TruckActor
Dig at the truck's present location.
DigResult - Class in truck
If you dig a full-size hole and find nothing, then this result is trivial; item will be null and portionCompleted will be 1.0.
DigResult(Item, double) - Constructor for class truck.DigResult
 
distanceTo(Coordinates) - Method in class truck.Coordinates
 

E

EXCAVATOR - Static variable in interface truck.Truck
 

F

FailedAfterStart - Exception in truck.event
 
FailedAfterStart(double) - Constructor for exception truck.event.FailedAfterStart
 

G

GameEngine - Interface in truck
Serves general information about the state of the battle.
GameEngine.Goal - Enum in truck
 
getActivity() - Method in interface truck.Truck
 
getBase() - Method in interface truck.TruckActor
A truck has a base somewhere on the battlefield that provides services.
getBattlefield() - Method in interface truck.GameEngine
 
getBearing(Coordinates) - Method in class truck.Coordinates
Returns a unit vector pointing in the direction you would go to get from this location to the target location.
getConfig() - Method in interface truck.Truck
 
getCoordinates() - Method in interface truck.Truck
 
getDefense() - Method in interface truck.Truck
 
getDexterity() - Method in interface truck.Truck
 
getGame() - Method in class truck.event.DeploymentEvent
 
getGoal() - Method in interface truck.GameEngine
 
getHealth() - Method in interface truck.Truck
 
getName() - Method in interface truck.Item
"Name" is the same as "tag"; it uniquely identifies this item in the game.
getOffense() - Method in interface truck.Truck
 
getSecondsRemaining() - Method in interface truck.GameEngine
 
getSize() - Method in interface truck.Battlefield
 
getTeamId() - Method in interface truck.Truck
 
getTruck() - Method in class truck.event.DeploymentEvent
 
getTrucks() - Method in interface truck.Battlefield
 
getType() - Method in interface truck.Truck
 

I

idle() - Method in interface truck.TruckActor
Idle indefinitely.
inventory() - Method in interface truck.TruckActor
A collection of all the items the truck is carrying.
isNear(Coordinates, double) - Method in class truck.Coordinates
Returns true if the target location is less than range units away from this location.
isRunning() - Method in interface truck.GameEngine
 
item - Variable in class truck.DigResult
 
item(String) - Method in interface truck.GameEngine
Provides an Item object with the specified tag.
Item - Interface in truck
Items are the portable objects that are not trucks.
ItemUnavailable - Exception in truck.event
 
ItemUnavailable(double, String) - Constructor for exception truck.event.ItemUnavailable
 

L

log(String) - Method in interface truck.TruckActor
Send a message from a truck to its owner.

M

magnitude() - Method in class truck.Coordinates
 
move(Coordinates) - Method in interface truck.TruckActor
Move this truck to the specified destination.
MoveBlocked - Exception in truck.event
 
MoveBlocked(double, Coordinates, Object) - Constructor for exception truck.event.MoveBlocked
 
MoveBlocked(MoveBlocked) - Constructor for exception truck.event.MoveBlocked
 
multiply(double) - Method in class truck.Coordinates
 

O

object - Variable in class truck.event.CombatEvent
 
OutOfRange - Exception in truck.event
The target of the requested action is out of range when the command is issued, or it has moved out of range since then.
OutOfRange(double) - Constructor for exception truck.event.OutOfRange
 

P

portionCompleted - Variable in class truck.DigResult
 
prerender(Object) - Static method in class truck.event.CombatEvent
 
proximity(ProximityEvent) - Method in interface truck.event.ProximityEventListener
 
ProximityEvent - Class in truck.event
 
ProximityEvent(Object, Truck) - Constructor for class truck.event.ProximityEvent
 
ProximityEventListener - Interface in truck.event
 
pursue(Truck) - Method in interface truck.TruckActor
Move this truck toward the specified target.

R

reason - Variable in exception truck.event.ItemUnavailable
 
repair(Truck) - Method in interface truck.TruckActor
(Not implemented) Repair a friendly truck.
repair(Truck, int) - Method in interface truck.TruckActor
(Not implemented) Repair a friendly truck until the specified number of hit points has been repaired.
ROOMBA - Static variable in interface truck.Truck
 

S

scan() - Method in interface truck.TruckActor
Sweep the nearby area with an underground scanning beam.
ScanResult - Class in truck
Contains the results of a fruitful TruckActor.scan().
ScanResult(Coordinates, double) - Constructor for class truck.ScanResult
 
setProximityAlert(double) - Method in interface truck.TruckActor
Cause the game to notify this truck (via proximity(truck.event.ProximityEvent)) whenever another truck gets within the specified range of this truck.
signalStrength - Variable in class truck.ScanResult
The confidence that the item is close to the coordinates of this result.
subject - Variable in class truck.event.CombatEvent
 

T

take(Item) - Method in interface truck.TruckActor
Pick up the item.
targetDefended - Variable in class truck.AttackResult
This is true if the target of your attack was in a defensive position, which happens if the target is also attacking you, or has previously attacked you and done nothing since then.
timeSpent - Variable in exception truck.event.FailedAfterStart
 
toJson() - Method in class truck.event.CombatEvent
 
toString() - Method in class truck.AttackResult
 
toString() - Method in class truck.Coordinates
 
toString() - Method in class truck.event.CombatEvent
 
toString() - Method in class truck.event.ProximityEvent
 
toString() - Method in class truck.ScanResult
 
toString() - Method in interface truck.Truck
 
TRACTOR - Static variable in interface truck.Truck
 
truck - package truck
 
truck - Variable in class truck.event.ProximityEvent
 
Truck - Interface in truck
Represents a physical truck unit on the battlefield.
truck.event - package truck.event
 
TruckActor - Interface in truck
Represents a truck that agent firmware can control.

V

valueOf(String) - Static method in enum truck.Activity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum truck.GameEngine.Goal
Returns the enum constant of this type with the specified name.
values() - Static method in enum truck.Activity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum truck.GameEngine.Goal
Returns an array containing the constants of this enum type, in the order they are declared.
verb - Variable in class truck.event.CombatEvent
 
viewCarrier() - Method in interface truck.Item
If a truck is carrying the item, this method returns that truck.
viewInventory() - Method in interface truck.Truck
 
viewLocation() - Method in interface truck.Item
Returns the location of the item if visible, or null if the item is buried.

X

x - Variable in class truck.Coordinates
 

Y

y - Variable in class truck.Coordinates
 
A B C D E F G I L M O P R S T V X Y