Exemplo n.º 1
0
        public Player(Game game)
        {
            buildingBoardState   = (BuildingBoardState)game.Services.GetService(typeof(IBuildingBoardState));
            placingSoldiersState = (PlacingSoldiersState)game.Services.GetService(typeof(IPlacingSoldiersState));

            army_size = 21;
        }
Exemplo n.º 2
0
        public Player(Game game)
        {
            chooseFlagState      = (ChooseFlagState)game.Services.GetService(typeof(IChooseFlagState));
            buildingBoardState   = (BuildingBoardState)game.Services.GetService(typeof(IBuildingBoardState));
            placingSoldiersState = (PlacingSoldiersState)game.Services.GetService(typeof(IPlacingSoldiersState));
            particleService      = (ParticleService)game.Services.GetService(typeof(ParticleService));

            army_size = 21;
        }
Exemplo n.º 3
0
        public PlayingState(Game game)
            : base(game)
        {
            game.Services.AddService(typeof(IPlayingState), this);
            placingSoldiersState       = (PlacingSoldiersState)game.Services.GetService(typeof(IPlacingSoldiersState));
            scrollingBackgroundManager = (IScrollingBackgroundManager)game.Services.GetService(typeof(IScrollingBackgroundManager));
            celAnimationManager        = (ICelAnimationManager)game.Services.GetService(typeof(ICelAnimationManager));

            teleports = new Tile[4];
        }