public GameMaster()
 {
     this.configuration    = new GameMasterConfiguration();
     this.connectionClient = new TCPClientAdapter();
     this.status           = GameMasterStatus.Active;
     teamBlueGuids         = new List <PlayerGuid>();
     teamRedGuids          = new List <PlayerGuid>();
     isGuiWorking          = false;
     debug = true;
 }
Exemplo n.º 2
0
        public GameMaster(GameMasterConfiguration configuration)
        {
            Logger.Get().Info("[GM] Creating GameMaster");

            Configuration         = configuration;
            ConnectionLogic       = new ConnectionLogicComponent(this);
            GameLogic             = new GameLogicComponent(this);
            ScoreComponent        = new ScoreComponent(this);
            BoardLogic            = new BoardLogicComponent(this);
            PresentationComponent = new PresentationComponent(this);
        }
Exemplo n.º 3
0
 public void SetConfiguration(GameMasterConfiguration configuration)
 {
     if (state == GameMasterState.Configuration)
     {
         Configuration = configuration;
         ScoreComponent.LoadNewConfiguration();
         BoardLogic.LoadNewConfiguration();
     }
     else
     {
         Logger.Get().Error("[GM] Cannot Set Configuration, because GM is not in configuration state.");
     }
 }