Exemple #1
0
        public HelpPage3(GameResources resources, Game1 game) : base(resources, game)
        {
            goldBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X / 3, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            goldBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Gold,
                IsPlayerOne = true,
            });

            kingBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X * 2 / 3, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            kingBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.King,
                IsPlayerOne = true,
            });
        }
Exemple #2
0
        public HelpPage2(GameResources resources, Game1 game) : base(resources, game)
        {
            lanceBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X / 4, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            lanceBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Lance,
                IsPlayerOne = true,
            });

            knightBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X * 2 / 4, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            knightBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Knight,
                IsPlayerOne = true,
            });
            knightBoard.Data.SetAt(1, 1, new PieceData()
            {
                Type        = PieceType.Pawn,
                IsPlayerOne = false,
            });
            knightBoard.Data.SetAt(2, 1, new PieceData()
            {
                Type        = PieceType.Pawn,
                IsPlayerOne = false,
            });
            knightBoard.Data.SetAt(3, 1, new PieceData()
            {
                Type        = PieceType.Pawn,
                IsPlayerOne = false,
            });

            silverBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X * 3 / 4, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            silverBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Silver,
                IsPlayerOne = true,
            });
        }
Exemple #3
0
        public HelpPage1(GameResources resources, Game1 game) : base(resources, game)
        {
            pawnBoard = new UIMiniBoard(resources, 3, 3)
            {
                Position       = new Vector2(Game.WindowSize.X / 4 - 70, 300),
                DrawMovesPiece = new Point(1, 1),
                Scale          = new Vector2(2f, 2f)
            };
            pawnBoard.Data.SetAt(1, 1, new PieceData()
            {
                Type        = PieceType.Pawn,
                IsPlayerOne = true,
            });

            bishopBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X * 2 / 4 - 60, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            bishopBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Bishop,
                IsPlayerOne = true,
            });

            rookBoard = new UIMiniBoard(resources, 5, 5)
            {
                Position       = new Vector2(Game.WindowSize.X * 3 / 4, 350),
                DrawMovesPiece = new Point(2, 2),
                Scale          = new Vector2(2f, 2f)
            };
            rookBoard.Data.SetAt(2, 2, new PieceData()
            {
                Type        = PieceType.Rook,
                IsPlayerOne = true,
            });
        }