Skip navigation links
B C D G M N O R S T U W 

B

bearing(WartHog.Point) - Method in class com.oroup.robocode.WartHog
Calculates the bearing from the tank to the point.
bulletFlightTime(double, double) - Method in class com.oroup.robocode.WartHog
Calculate how long a bullet will take to fly a certain distance.
bulletVelocity(double) - Method in class com.oroup.robocode.WartHog
 

C

com.oroup.robocode - package com.oroup.robocode
 
computeForce(WartHog.Enemy) - Method in class com.oroup.robocode.WartHog
Compute how hard to fire at an enemy.

D

distance(WartHog.Point) - Method in class com.oroup.robocode.WartHog
Calculates the distance from the tank to the point.

G

getBestEnemy() - Method in class com.oroup.robocode.WartHog
Find the juiciest target to shoot at.
getPoint() - Method in class com.oroup.robocode.WartHog
Returns the current position of the tank as a point.
getRadDelt(double, double) - Method in class com.oroup.robocode.WartHog
Given a distance and a direction, compute the point we will arrive at.
gunBearingTolerance(WartHog.Point, double) - Method in class com.oroup.robocode.WartHog
Given a target point, and a gun bearing, figure out how close the bullet will come to the target.

M

main(String[]) - Static method in class com.oroup.robocode.WartHog
 

N

normalizeAngle(double) - Method in class com.oroup.robocode.WartHog
Converts any angle to be between -180 and 180.

O

onHitRobot(HitRobotEvent) - Method in class com.oroup.robocode.WartHog
If we hit a robot, change directions if that will get us away from what we hit.
onHitWall(HitWallEvent) - Method in class com.oroup.robocode.WartHog
If we hit a wall change directions.
onRobotDeath(RobotDeathEvent) - Method in class com.oroup.robocode.WartHog
If a robot dies, remove it from our list so we don't go after dead enemies.
onScannedRobot(ScannedRobotEvent) - Method in class com.oroup.robocode.WartHog
If we see an enemy, figure out where it is and store it's data away.

R

run() - Method in class com.oroup.robocode.WartHog
The tank execution loop: Spin the radar.

S

setGunHeading(double) - Method in class com.oroup.robocode.WartHog
Turn the gun to the heading supplied using whichever direction is faster.
setHeading(double) - Method in class com.oroup.robocode.WartHog
Turns the tank to the supplied heading, using whichever direction is fastest.

T

triangulate(double, double, double) - Method in class com.oroup.robocode.WartHog
There is a point we want to target, but we want to keep a certain distance from it, and there's a certain amount of distance we can cover this turn.

U

updateEnemyData(String, WartHog.Point, double, double, long) - Method in class com.oroup.robocode.WartHog
Save away all the data about enemies that we see.

W

WartHog - Class in com.oroup.robocode
This is a tank for Robocode.
WartHog() - Constructor for class com.oroup.robocode.WartHog
 
B C D G M N O R S T U W 
Skip navigation links