Exemple #1
0
 /// <summary>
 /// 线程数据的构造函数
 /// </summary>
 /// <param name="aGame">游戏的基类</param>
 public ThreadData(GameBase aGame)
 {
     Game   = aGame;
     Enable = false;
     SynchronizationMutex = new Mutex();
     SynchronizationReady = false;
     Achievelock          = new object();
     AskFor         = MessageCore.AskForEnum.Sha;
     ToEvery        = false;
     AskTo          = null;
     timeout        = 100;
     WaittingThread = null;
     Target         = null;
     Abstention     = null;
     CardsCount     = 1;
 }
Exemple #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="aChiefs">需要接收问询的武将</param>
 /// <param name="aMessage">问询内容</param>
 /// <param name="aCommon">是否将消息放入公共事件链中</param>
 /// <param name="aGame">游戏对象</param>
 public AskForWrapper(ChiefBase[] aChiefs, string aMessage, bool aCommon, GameBase aGame)
     : this(ChiefBase.Chiefs2Players(aChiefs, aGame.GamePlayers), aMessage, aCommon)
 {
 }
Exemple #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="aMessage">问询内容</param>
 /// <param name="aGame">游戏对象</param>
 public AskForWrapper(string aMessage, GameBase aGame)
     : this(aGame.GamePlayers.All, aMessage, true)
 {
 }
Exemple #4
0
 /// <summary>
 /// 构造问询对象
 /// </summary>
 /// <param name="aGB">游戏的基类</param>
 public MessageCore(GameBase aGB)
 {
     GB = aGB;
 }