public class UIPlayer extends AgentPlayer
policy, state
Constructor and Description |
---|
UIPlayer(String name,
Agent policy)
Create a player with a given name and policy.
|
UIPlayer(String name,
Agent policy,
boolean interactive) |
Modifier and Type | Method and Description |
---|---|
Action |
getAction() |
void |
onGameOver() |
void |
sendMessage(GameEvent msg) |
void |
setID(int id,
int nPlayers) |
getName, toString
public UIPlayer(String name, Agent policy)
name
- the name of this playerpolicy
- the policy this player should usepublic Action getAction()
getAction
in interface Player
getAction
in class AgentPlayer
public void setID(int id, int nPlayers)
setID
in interface Player
setID
in class AgentPlayer
public void sendMessage(GameEvent msg)
sendMessage
in interface Player
sendMessage
in class AgentPlayer
public void onGameOver()
Copyright © 2017 FOSS Galaxy. All rights reserved.