public interface GameStateListener
Modifier and Type | Method and Description |
---|---|
void |
abort()
Called when the game is aborted (forcefully terminated).
|
void |
claim(Player player,
ConvexObject obj)
Called when a player claims a new object.
|
void |
end()
Called when the game ends.
|
void |
merge(Player player,
ConvexObject source,
ConvexObject target,
ConvexObject result,
java.util.List<ConvexObject> absorbed)
Called when a player performs a merge.
|
void claim(Player player, ConvexObject obj)
player
- The player that made the claim.obj
- The object that was claimed.void merge(Player player, ConvexObject source, ConvexObject target, ConvexObject result, java.util.List<ConvexObject> absorbed) throws java.lang.InterruptedException
player
- The player that performed the merge.source
- The object the merge was started from.target
- The target object of the merge.result
- The object resulting from the merge.absorbed
- The objects absorbed in the merge.java.lang.InterruptedException
- When the player was
interrupted while making its move. Signalling
that the game was aborted.void end()
void abort()