예제 #1
0
파일: Player.cs 프로젝트: arcticnw/Wildmen
 /// <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;
 }
예제 #2
0
파일: Player.cs 프로젝트: arcticnw/Wildmen
 /// <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()];
 }