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<Creep | PowerCreep, MoveIntent>;
        prefersToStay: Set<string>;
        priority: Map<number, Map<number, Map<Creep | PowerCreep, MoveIntent>>>;
        pullees: Set<Creep | PowerCreep>;
        pullers: Set<Creep | PowerCreep>;
        targets: Map<string, Map<Creep | PowerCreep, MoveIntent>>;
    }

    • blockedSquares: Set<string>
    • creep: Map<Creep | PowerCreep, MoveIntent>
    • prefersToStay: Set<string>
    • priority: Map<number, Map<number, Map<Creep | PowerCreep, MoveIntent>>>
    • pullees: Set<Creep | PowerCreep>
    • pullers: Set<Creep | PowerCreep>
    • targets: Map<string, Map<Creep | PowerCreep, MoveIntent>>

Generated using TypeDoc