screeps-cartographer
    Preparing search index...

    Function getMoveIntents

    • Gets the current tick's move intents, recreating the indexes if the data is stale from the previous tick

      Returns:

      • creep: Index of intents by creep
      • priority: Index of intents by priority, then by number of viable target squares, then by creep
      • targets: Index of intents by position, then by creep
      • pullers: Index of puller creeps

      Parameters

      • room: string

      Returns {
          blockedSquares: Set<string>;
          creep: Map<Id<Creep | PowerCreep>, MoveIntent>;
          prefersToStay: Set<string>;
          priority: Map<number, Map<number, Map<Id<Creep | PowerCreep>, MoveIntent>>>;
          pullees: Set<Id<Creep | PowerCreep>>;
          pullers: Set<Id<Creep | PowerCreep>>;
          targets: Map<string, Map<Id<Creep | PowerCreep>, MoveIntent>>;
      }