public DebugTileDialog(Tile[] tiles, ProjectRessources ress) { InitializeComponent(); this.tiles = tiles; ressources = ress; SetInfos(tiles[0]); }
public Tile(Tile o) { this.pEvent = o.pEvent; this.TileIndexX = o.TileIndexX; this.TileIndexY = o.TileIndexY; this.W = o.W; this.WasDrawn = o.WasDrawn; this.X = o.X; this.Y = o.Y; }
private void SetInfos(Tile tile) { using (XNAUtils utils = new XNAUtils()) { LB_Position.Text = tile.X + " X " + tile.Y; LB_TileSetIndex.Text = tile.TileIndexX < 0 ? "Tuile vide" : tile.TileIndexX + " X " + tile.TileIndexY; //PN_Preview.BackgroundImage = utils.ConvertToImage(tile.Background); BTN_pEvent.Enabled = tile.pEvent != null; } }
public MapState(Tile[,,] currentState) { tiles = currentState; TimeStamp = DateTime.Now; }
private Boolean CompareTiles(Tile o1, Tile o2) { return o1 == o2; }