OpenNos.GameObject.Character.IsInRange C# (CSharp) 메소드

IsInRange() 공개 메소드

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.
리턴 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