screeps-clockwork
    Preparing search index...

    Function getRange

    • Get the global range between two positions. This is different from the getRange method on RoomPosition, which gets the range only within the same room.

      Parameters

      • pos1: RoomPosition

        The first position.

      • pos2: RoomPosition

        The second position.

      Returns number

      The range between the two positions.