示例#1
0
 /** Returns whether or not this entity has vision of a given map tile. * */
 public boolean hasVisionOfTile(int x, int y) {
   return hasVisionOfLocation(Frost.TileToWorldX(x), Frost.TileToWorldY(y));
 }
示例#2
0
 /** Returns whether or not this entity has vision of a given map coordinate. * */
 public boolean hasVisionOfLocation(int x, int y) {
   return Frost.Distance(getX(), getY(), x, y) < VisionRadius;
 }