|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tankbattles.simulation.tank.AbstractTankController
sample.tank.BackAndForward
public class BackAndForward
Sample implementation of a tank controller. Just makes the tank go ahead, brake, go back and brake again.
| Constructor Summary | |
|---|---|
BackAndForward()
|
|
| Method Summary | |
|---|---|
void |
onRadarDetection(RadarDetectionEvent event)
|
void |
run()
Main method for managing the tank behavior. |
| Methods inherited from class net.sf.tankbattles.simulation.tank.AbstractTankController |
|---|
isAlive, onCollision, onHitByBullet, setLock, setTankNode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackAndForward()
| Method Detail |
|---|
public void run()
public void onRadarDetection(RadarDetectionEvent event)
onRadarDetection in class AbstractTankController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||