Exemple #1
0
        public virtual void Initialize()
        {
            GameTime = new GameTime();

            GameBoard = new GameBoard(800, 800);
            ComponentService = new ComponentService();
            AiStore = new ConcurrentMemoryStore<string, IArtificialIntelligence>();
            MoveUnitService = new MoveUnitService(ComponentService,AiStore);

            Agent = new Agent(new EventValidationService(GameBoard, ComponentService), ComponentService, MoveUnitService, AiStore, GameTime);

            Agent.Register<ArtificialIntelligenceSpa>();
            Agent.Register<ArtificialIntelligenceNku>();
            Agent.Register<ArtificialIntelligenceNhu>();
            Agent.Register<ArtificialIntelligenceJfi>();

            GameMaster = new GameMaster(Agent, GameBoard);
        }