public class Mole extends AgentImplementation
currentVote, eliminated, mole, nameString, ponderings, secondOrderBelief, suspicions, typeString
Modifier and Type | Method and Description |
---|---|
boolean |
doAssignment(Assignment a)
Asks the agent to decide whether to try or to fail in the current
assignment.
|
void |
informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList)
AssignmentEvent tells the agent what she sees
|
void |
informElimination(Agent loser)
EliminationEvent tells Agent who is eliminated through this method.
|
void |
informGameEnd(int nrOfLeftAgent)
Round or EliminateEvent inform every player that the game is end.
|
addCompetitor, addCompetitors, avgSuspicion, clearSecondOrderBelief, decideVote, eliminate, getMaxSuspiciousAgents, getName, getNumberOfCompetitors, getPonderings, getSuspicions, getTypeString, isEliminated, isMole, listenConversation, normalizeSuspicions, ponder, setName, setTypeString, summedSuspicion, tellConversation, toString, updateSuspicion, updateView, vote
public boolean doAssignment(Assignment a)
Agent
public void informAssResult(boolean success, java.util.ArrayList<Agent> triedList, java.util.ArrayList<Agent> sabotagedList)
Agent
success
- The result of the assignmenttriedList
- The agents who try her's bestsabotagedList
- The agents who sabotagedpublic void informElimination(Agent loser)
Agent
loser
- the agent who is eliminated from the gamepublic void informGameEnd(int nrOfLeftAgent)
Agent
nrOfLeftAgent
- tell the agent how many agents left in the game