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; }
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); }
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); }
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; }
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 }