Esempio n. 1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="roomID"></param>
        public DaifugoPlayRoom(string roomID, string rule)
        {
            RoomID = roomID;
            Rule   = rule;
            var ctx = ContextFactory.CreateGameContext(rule == "A"?0:1);

            Master = ContextFactory.CreateGameMaster(ctx);
            Master.AddObserver(this);
            _updateLastUsed();
        }
Esempio n. 2
0
 /// <summary>
 /// オブザーバーの入室
 /// </summary>
 /// <param name="m"></param>
 public void AddObserver(IGameEventListener m)
 {
     Master.AddObserver(m);
     logger.Info("[{0}] Visit observer. {1}", RoomID, m);
 }