public interface ITower
Modifier and Type | Method and Description |
---|---|
boolean |
extinguish(int turn)
Called once per turn.
|
int |
getDetectionRadius()
Called once per turn.
|
TowerPosition |
initialize(int turn)
Called once and only once, when a tower is created.
|
Heading |
onCaptureBall(PinballEngine.TeamType teamType,
Heading heading)
Called when a ball collides with this tower.
|
void |
onDetectBall(PinballEngine.TeamType teamType,
Position position)
Called when a ball passes within detection range of a tower.
|
TowerPosition initialize(int turn)
extinguish(int)
.turn
- Heading onCaptureBall(PinballEngine.TeamType teamType, Heading heading)
teamType
- heading
- void onDetectBall(PinballEngine.TeamType teamType, Position position)
teamType
- position
- boolean extinguish(int turn)
turn
- int getDetectionRadius()