Example #1
0
        public override void Initialize()
        {
            Console.WriteLine("Initializing!");

            _imGuiRenderer = new ImGuiRenderer(Game);
            _imGuiRenderer.RebuildFontAtlas();

            _camera = new OrthographicCamera(GraphicsDevice);
            _camera.LookAt(new Vector2(GraphicsDevice.Viewport.Width / 2.0f, GraphicsDevice.Viewport.Height / 2.0f));
            _camera.Zoom = 0.5f;

            _playerTurnsContainer = new PlayerTurnsContainer(_field, _gameStateManager);
            SetUpCommands();

            base.Initialize();
        }
 protected MineFieldCommandBase(MineField mineField, OrthographicCamera camera, PlayerTurnsContainer container)
 {
     MineField = mineField;
     Camera    = camera;
     Container = container;
 }
Example #3
0
 public PlaceFlagCommand(MineField mineField, OrthographicCamera camera, PlayerTurnsContainer container)
     : base(mineField, camera, container)
 {
 }
Example #4
0
 public RevealCellCommand(MineField mineField, OrthographicCamera camera, PlayerTurnsContainer container)
     : base(mineField, camera, container)
 {
 }