public EffectTile(EffectTile other) { ID = other.ID; Revealed = other.Revealed; Danger = other.Danger; TileStates = other.TileStates.Clone(); TileLoc = other.TileLoc; }
protected virtual void PrepareTileDraw(SpriteBatch spriteBatch, int xx, int yy) { ZoneManager.Instance.CurrentMap.DrawLoc(spriteBatch, new Loc(xx * GraphicsManager.TileSize, yy * GraphicsManager.TileSize) - ViewRect.Start, new Loc(xx, yy), false); EffectTile effect = ZoneManager.Instance.CurrentMap.Tiles[xx][yy].Effect; if (effect.ID > -1 && effect.Exposed && !DataManager.Instance.HideObjects) { if (DataManager.Instance.GetTile(effect.ID).ObjectLayer) { AddToDraw(backDraw, effect); } else { AddToDraw(groundDraw, effect); } } }
protected Tile(Tile other) { Data = other.Data.Copy(); FloorTile = other.FloorTile.Copy(); Effect = new EffectTile(other.Effect); }
public Tile(int type, Loc loc) { Data = new TerrainTile(type); FloorTile = new AutoTile(); Effect = new EffectTile(loc); }
public Tile() { Data = new TerrainTile(); FloorTile = new AutoTile(); Effect = new EffectTile(); }
public Tile(int type, Loc loc) { Data = new TerrainTile(type); Effect = new EffectTile(loc); }
public Tile(int type) { Data = new TerrainTile(type); Effect = new EffectTile(); }
public Tile() { Data = new TerrainTile(); Effect = new EffectTile(); }