Ejemplo n.º 1
0
 public void CalculateVisible(int FromX, int FromY, int Radius)
 {
     FOVHandler.CalculateFOV(FromX, FromY, Radius, true, libtcodWrapper.FovAlgorithm.Basic);
     for (int x = 0; x < 90; x++)
     {
         for (int y = 0; y < 30; y++)
         {
             if (FOVHandler.CheckTileFOV(x, y))
             {
                 DisplayData[x, y].IsVisible = DisplayData[x, y].HasBeenSeen = true;
             }
             else
             {
                 DisplayData[x, y].IsVisible = false;
             }
         }
     }
 }
Ejemplo n.º 2
0
 public bool CanSeeCell(int X, int Y)
 {
     FOVHandler.CalculateFOV(Position.X, Position.Y, BaseAim, true, libtcodWrapper.FovAlgorithm.Basic);
     return(FOVHandler.CheckTileFOV(X, Y));
 }