@Override public String talk() { if (!isComingOut) { String comingoutTalk = TemplateTalkFactory.comingout(getMe(), getMyRole()); isComingOut = true; return comingoutTalk; } else { for (Judge judge : getMyJudgeList()) { if (!myToldJudgeList.contains(judge)) { String resultTalk = TemplateTalkFactory.divined(judge.getTarget(), judge.getResult()); myToldJudgeList.add(judge); return resultTalk; } } } return Talk.OVER; }
@Override public String talk() { if (!isComingout) { isComingout = true; String ret = TemplateTalkFactory.comingout(getMe(), getMyRole()); return ret; } if (!tellMyJudge) { tellMyJudge = true; Judge judge = this.getLatestDayGameInfo().getDivineResult(); if (judge != null) { String ret = TemplateTalkFactory.divined(judge.getTarget(), judge.getResult()); return ret; } } return Talk.OVER; }
private String estimateRealSeer() { String estimateRealSeer = null; List<Agent> divinedCorrectlyAgentList = getDivinedCorrectlyAgentList(); if (!divinedCorrectlyAgentList.isEmpty()) { for (Agent agent : divinedCorrectlyAgentList) { estimateRealSeer = TemplateTalkFactory.estimate(agent, Role.SEER); if (!this.getMyTalkContents().contains(estimateRealSeer)) return estimateRealSeer; } } return null; }
@Override public String talk() { String estimateRealSeer = estimateRealSeer(); if (estimateRealSeer != null) { if (!this.getMyTalkContents().contains(estimateRealSeer)) return estimateRealSeer; } if (!isTalkedAboutVote()) { setVoteTarget(); return TemplateTalkFactory.vote(voteTarget); } return Talk.OVER; }
@Override public String getTalk() { return TemplateTalkFactory.inquested(target, result); }