public abstract class GeneralVH extends GeneralNegotiator
Modifier and Type | Field and Description |
---|---|
(package private) int |
agentID |
(package private) boolean |
AgentVsAgent |
protected boolean |
safeForMultiAgent |
game
Constructor and Description |
---|
GeneralVH(java.lang.String username,
GameSpec game,
javax.websocket.Session session)
Creates a generic agent, which must pass through its username, associated game, and session.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
agentDescription()
This is the HTML description of the agent, e.g.
|
boolean |
getAgentVsAgent() |
abstract java.lang.String |
getArtName()
Returns the name of the art that should be used for this character.
|
abstract java.util.LinkedList<Event> |
getEventResponse(Event e)
Returns a list of all Events that the VH decides to enact in response to the incoming Event.
|
int |
getID()
Returns ID of agent (0 for user agent, 1 for opponent)
|
boolean |
safeForMultiAgent()
indicates whether or not the agent can be used in a multi-agent game.
|
void |
setAgentVsAgent(java.lang.String choice) |
getAdversary, getHistory, getName, getSession, pairWith, setAdversary, setGameSpec, setHistory
int agentID
protected boolean safeForMultiAgent
boolean AgentVsAgent
public GeneralVH(java.lang.String username, GameSpec game, javax.websocket.Session session)
username
- The username, which may be any short, descriptive value to use in logs.game
- The GameSpec, which is automatically provided based on the configuration file setting.session
- The HTTP session, which is automatically provided.public abstract java.util.LinkedList<Event> getEventResponse(Event e)
e
- public abstract java.lang.String getArtName()
public abstract java.lang.String agentDescription()
Brad -- He is looking forward to negotiating with you!
"public int getID()
public boolean safeForMultiAgent()
public void setAgentVsAgent(java.lang.String choice)
choice
- public boolean getAgentVsAgent()