Exemple #1
0
        private bool itsJustForDrawOnButton;                    // will be true just for draw the buttons

        public Board(int size, Texture2D isometricTileImage, Texture2D twoDtileImage)
        {/// full board
            tileSize   = Game1.screen_height / 30;
            typeOfBord = TypeOfBord.fullBoard;
            SetGeneralTypesOfBoard(isometricTileImage, twoDtileImage, size, size); // set types for board or shapes
            itsJustForDrawOnButton = false;
        }
Exemple #2
0
 public Board(List <NodeOFHidenTiles> _hidenTiles, int _width,
              int _height, int starterX, int starterY, Texture2D ti,
              Texture2D t2d, bool _addToLeft, ContentManager content)
 {
     // shape
     typeOfBord = TypeOfBord.Shape;
     SetShapeTypes(_hidenTiles, starterX, starterY, content); //set types only in shape
     SetGeneralTypesOfBoard(ti, t2d, _height, _width);
 }
Exemple #3
0
 public Board(List <NodeOFHidenTiles> _hidenTiles, int _width,
              int _height, int starterX, int starterY, Texture2D ti,
              Texture2D t2d, bool _addToLeft, ContentManager content, int tile_size)
 {
     // shape with new tileSize - for draw the buttons.
     tileSize               = tile_size;
     typeOfBord             = TypeOfBord.Shape;
     itsJustForDrawOnButton = true;
     SetShapeTypes(_hidenTiles, starterX, starterY, content); //set types only in shape
     SetGeneralTypesOfBoard(ti, t2d, _height, _width);
 }
Exemple #4
0
 public Board(List <NodeOFHidenTiles> _hidenTiles, int _width,
              int _height, int starterX, int starterY, Texture2D ti,
              Texture2D t2d, bool _addToLeft, ContentManager content)
 {
     // shape
     tileSize   = Game1.screen_height / 30;
     typeOfBord = TypeOfBord.Shape;
     SetShapeTypes(_hidenTiles, starterX, starterY, content); //set types only in shape
     SetGeneralTypesOfBoard(ti, t2d, _height, _width);
     itsJustForDrawOnButton = false;
 }
Exemple #5
0
        private bool move;                                        // for knowing if move some shape at the moment

        public Board(int size, Texture2D isometricTileImage, Texture2D twoDtileImage)
        {                                                                          /// full board
            typeOfBord = TypeOfBord.fullBoard;
            SetGeneralTypesOfBoard(isometricTileImage, twoDtileImage, size, size); // set types for board or shapes
        }