public class LocalPlayer extends Player
Player.MergeOption, Player.PlayerStats
Modifier and Type | Field and Description |
---|---|
protected ConvexObject |
target
Object currently being worked on.
|
Modifier | Constructor and Description |
---|---|
|
LocalPlayer()
Constructs a new local player (Elaina).
|
protected |
LocalPlayer(java.lang.String name)
Constructs a new local player with the given name.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
claimNewObject()
Selects a new object to claim and start maximising area from.
|
boolean |
executeMove()
Executes a move for this player.
|
addArea, equals, findBestMergeFrom, findLargestUnownedObject, findLargestUnownedObject, getArea, getID, getName, getProxy, getScoreAnimation, getStats, getTheme, hashCode, hasMergeFrom, init, isAI, isLocal, owns, removeArea, setID, setName, stream, toString
protected ConvexObject target
public LocalPlayer()
protected LocalPlayer(java.lang.String name)
name
- The player name.public boolean executeMove() throws java.lang.InterruptedException
Player
executeMove
in class Player
java.lang.InterruptedException
- When the player was
interrupted while making its move. Signalling
that the game was aborted.protected boolean claimNewObject() throws java.lang.InterruptedException
java.lang.InterruptedException
- When the player was
interrupted while making its move. Signalling
that the game was aborted.