public class GameSetting
extends java.lang.Object
implements java.lang.Cloneable
コンストラクタと説明 |
---|
GameSetting()
新しいゲーム設定を構築します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
GameSetting |
clone()
ゲーム設定の複製を作成し、返します。
|
static GameSetting |
getCustomGame(java.lang.String fileName)
ファイルから設定を読み込んで返します
Returns game setting read from configuration file.
|
static GameSetting |
getDefaultGame(int agentNum)
通常のゲーム設定を返します。
|
int |
getMaxAttackRevote()
最大再襲撃投票回数を返します。
|
int |
getMaxRevote()
最大再投票回数を返します。
|
int |
getMaxSkip()
Skipの最大値.これ以上のSKIPを連続するとOVERに変換される
Max value of Skip.
|
int |
getMaxTalk()
1日あたりの発言の最大数を返します。
|
int |
getMaxTalkTurn()
1日あたりの発言ターンの最大数を返します。
|
int |
getMaxWhisper()
1日あたりの発言の最大数を返します。
|
int |
getMaxWhisperTurn()
1日あたりの発言ターンの最大数を返します。
|
int |
getPlayerNum()
プレイヤーの人数を返します。
|
long |
getRandomSeed()
ランダムシードを返します。
|
int |
getRoleNum(Role role)
指定された役職の人数を返します。
|
java.util.Map<Role,java.lang.Integer> |
getRoleNumMap()
役職に対する人数を関連付けたマップを返します。
|
static GameSetting |
getSeminarGame()
非推奨です。
|
int |
getTimeLimit()
リクエスト応答時間の上限を返す.
|
boolean |
isEnableNoAttack()
誰も襲撃しないのを許されているかどうかを返します。
|
boolean |
isEnableNoExecution()
同票数の場合に追放なしとするかどうかを返します。
|
boolean |
isTalkOnFirstDay()
Day 0にtalkがあるかどうかを返します。
|
boolean |
isValidateUtterance()
発話文字列の違反チェックを行うかどうかを返します。
|
boolean |
isVotableInFirstDay()
初日の投票ができるかどうかを返します。
|
boolean |
isVoteVisible()
誰が誰に投票したかをエージェントが確認できるかを返します。
|
boolean |
isWhisperBeforeRevote()
再襲撃投票前にwhisperするかどうかを返します。
|
void |
setEnableNoAttack(boolean isEnableNoAttack)
誰も襲撃しないのを許すかどうかを設定します。
|
void |
setEnableNoExecution(boolean isEnableNoExecution)
同票数の場合に追放なしとするかどうかをセットします。
|
void |
setMaxAttackRevote(int maxAttackRevote)
最大再襲撃投票回数をセットします。
|
void |
setMaxRevote(int maxRevote)
最大再投票回数をセットします。
|
void |
setMaxTalk(int maxTalk)
1日あたりの発言の最大数を設定します。
|
void |
setRandomSeer(long randomSeed)
ランダムシードを設定します。
|
void |
setRoleNumMap(java.util.Map<Role,java.lang.Integer> roleNumMap)
役職に対する人数を関連付けたマップを設定します。
|
void |
setTalkOnFirstDay(boolean isTalkOnFirstDay)
Day 0にtalkがあるかどうかをセットします。
|
void |
setTimeLimit(int timeLimit)
リクエスト応答時間の上限をセットします。
|
void |
setValidateUtterance(boolean isValidateUtterance)
発話文字列の違反チェックを行うかどうかをセットします。
|
void |
setVoteVisible(boolean isVoteVisible)
誰が誰に投票したかをエージェントが確認できるかどうかを設定します。
|
void |
setWhisperBeforeRevote(boolean isWhisperBeforeRevote)
再襲撃投票前にwhisperするかどうかをセットします。
|
public static GameSetting getDefaultGame(int agentNum)
agentNum
- public static GameSetting getCustomGame(java.lang.String fileName) throws java.io.IOException
fileName
- java.io.IOException
public static GameSetting getSeminarGame()
public int getRoleNum(Role role)
role
- public int getMaxTalk()
public int getMaxTalkTurn()
public int getMaxWhisper()
public int getMaxWhisperTurn()
public int getMaxSkip()
public boolean isEnableNoAttack()
public boolean isVoteVisible()
public boolean isVotableInFirstDay()
public boolean isEnableNoExecution()
public boolean isTalkOnFirstDay()
public boolean isValidateUtterance()
public boolean isWhisperBeforeRevote()
public int getPlayerNum()
public java.util.Map<Role,java.lang.Integer> getRoleNumMap()
public void setRoleNumMap(java.util.Map<Role,java.lang.Integer> roleNumMap)
roleNumMap
- public void setMaxTalk(int maxTalk)
maxTalk
- public void setEnableNoAttack(boolean isEnableNoAttack)
isEnableNoAttack
- public void setVoteVisible(boolean isVoteVisible)
isVoteVisible
- public void setEnableNoExecution(boolean isEnableNoExecution)
isEnableNoExecution
- public void setTalkOnFirstDay(boolean isTalkOnFirstDay)
isTalkOnFirstDay
- - public void setValidateUtterance(boolean isValidateUtterance)
isValidateUtterance
- - public void setWhisperBeforeRevote(boolean isWhisperBeforeRevote)
isWhisperBeforeRevote
- -public long getRandomSeed()
public void setRandomSeer(long randomSeed)
randomSeed
- public int getTimeLimit()
public void setTimeLimit(int timeLimit)
timeLimit
- public int getMaxRevote()
public void setMaxRevote(int maxRevote)
maxRevote
- public int getMaxAttackRevote()
public void setMaxAttackRevote(int maxAttackRevote)
maxRevote
- public GameSetting clone()
clone
クラス内 java.lang.Object