public IsInRange ( int xCoordinate, int yCoordinate ) : bool | ||
xCoordinate | int | The x coordinate of the object to check. |
yCoordinate | int | The y coordinate of the object to check. |
return | bool |
public bool IsInRange(int xCoordinate, int yCoordinate)
{
return Math.Abs(MapX - xCoordinate) <= 50 && Math.Abs(MapY - yCoordinate) <= 50;
}
Character::IsInRange ( int xCoordinate, int yCoordinate, int range ) : bool |