public interface IPlayer
Modifier and Type | Method and Description |
---|---|
void |
init(PinballEngine.Team team)
Called once per game, prior to the first turn.
|
void |
onDetectBall(PinballEngine.Turn turn,
PinballEngine.TowerQueue queue,
PinballEngine.TeamType teamType,
Position position)
Called at the end of each of this IPlayer's turns.
|
void |
onExpired(ITower tower)
Called when this IPlayer's tower expires (ie, reports that it has expired or has
no collisions remaining).
|
void |
startTurn(PinballEngine.Turn turn,
PinballEngine.TowerQueue queue)
Called at the start of each of this IPlayer's turns.
|
void init(PinballEngine.Team team)
team
- the team color assigned to this IPlayer for this game.void onExpired(ITower tower)
tower
- the expired towervoid startTurn(PinballEngine.Turn turn, PinballEngine.TowerQueue queue)
turn
- queue
- void onDetectBall(PinballEngine.Turn turn, PinballEngine.TowerQueue queue, PinballEngine.TeamType teamType, Position position)
turn
- queue
-