/// <summary> /// Sets fog of war visibility for given tile /// </summary> /// <param id="tile">Tile we want to set the fog of war visibility value to</param> /// <param id="newFow">New fog of war value</param> public void SetFowVisibility(IScriptTile tile, byte newFow) { if (newFow > 2) newFow = 2; Fow[tile.GetX(), tile.GetY()] = newFow; }
/// <summary> /// Gets fog of war visibility for given tile /// </summary> /// <param id="tile">Tile we want to get the fog of war visibility value from</param> /// <returns>Fog of war visibility value</returns> public byte GetFowVisibility(IScriptTile tile) { return Fow[tile.GetX(), tile.GetY()]; }