OpenNos.GameObject.Character.IsInRange C# (CSharp) Method

IsInRange() public method

Checks if the current character is in range of the given position
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;
        }

Same methods

Character::IsInRange ( int xCoordinate, int yCoordinate, int range ) : bool
Character