Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bonzaiferroni/bonzAI
/ functions
Functions
2,330 in github.com/bonzaiferroni/bonzAI
⨍
Functions
2,330
◇
Types & classes
438
↓ 7 callers
Method
getActiveBodyparts
(type: string)
src/ai/missions/Agent.ts:53
↓ 7 callers
Method
getName
()
lastStableBuild/main.js:2551
↓ 7 callers
Method
getRemoteSpawnGroup
(distanceLimit = 4, levelRequirement = 1)
lastStableBuild/main.js:2330
↓ 7 callers
Method
join
* @see _.join
declarations/lodash.d.ts:253
↓ 7 callers
Method
rangedHeal
(target: Creep|Agent)
src/ai/missions/Agent.ts:71
↓ 6 callers
Method
addStructuresToMatrix
(room: Room, matrix: CostMatrix, roadCost: number)
src/ai/Traveler.ts:386
↓ 6 callers
Method
avoidSK
(destination: Flag)
src/ai/missions/Agent.ts:342
↓ 6 callers
Method
claimController
(controller: StructureController)
src/ai/missions/Agent.ts:50
↓ 6 callers
Method
findOperationWaypoints
()
lastStableBuild/main.js:2376
↓ 6 callers
Method
findRoute
(origin: string, destination: string, options: TravelToOptions = {})
src/ai/Traveler.ts:72
↓ 6 callers
Method
findTravelPath
(origin, destination, options)
lastStableBuild/main.js:935
↓ 6 callers
Method
getFlagSet
(identifier, max = 10)
lastStableBuild/main.js:2822
↓ 6 callers
Method
getStructureMatrix
(room: Room, freshMatrix?: boolean)
src/ai/Traveler.ts:373
↓ 6 callers
Method
getUpgraderPositions
()
declarations/custom.d.ts:151
↓ 6 callers
Method
hasValidPath
(origin, destination)
lastStableBuild/main.js:9571
↓ 6 callers
Method
normalizeStore
(target: Creep|StructureContainer|StructureStorage|StructureTerminal)
src/ai/missions/Agent.ts:600
↓ 6 callers
Method
pavePath
(start, finish, rangeAllowance, ignoreLimit = false)
lastStableBuild/main.js:2991
↓ 6 callers
Method
paverActions
(paver)
lastStableBuild/main.js:3103
↓ 6 callers
Method
spawnPaver
()
lastStableBuild/main.js:3159
↓ 6 callers
Method
standardClearActions
(attackingCreep)
lastStableBuild/main.js:9271
↓ 5 callers
Method
clone
* Copy this CostMatrix into a new CostMatrix with the same data.
declarations/screeps.d.ts:1424
↓ 5 callers
Method
findDistanceToSpawn
(destination)
lastStableBuild/main.js:2964
↓ 5 callers
Method
findRoadToRepair
()
lastStableBuild/main.js:3142
↓ 5 callers
Method
get
* Gets the cached value for `key`. * @param key The key of the value to get. * @return Returns the cached value.
declarations/lodash.d.ts:113
↓ 5 callers
Method
getStorage
(pos)
lastStableBuild/main.js:2848
↓ 5 callers
Method
slice
* Creates a slice of array from start up to, but not including, end. * * @param array The array to slice. * @param start Th
declarations/lodash.d.ts:2045
↓ 5 callers
Method
spawn
(build, name, memory, reservation)
lastStableBuild/main.js:1143
↓ 5 callers
Method
withdrawIfFull
* Only withdraw from a store-holder if there is enough resource to transfer (or if holder is full), cpu-efficiency effort * @param target *
src/ai/missions/Agent.ts:584
↓ 4 callers
Method
analyzeTransport
(distance, load, maxSpawnEnergy)
lastStableBuild/main.js:2732
↓ 4 callers
Method
drop
* Creates a slice of array with n elements dropped from the beginning. * * @param array The array to query. * @param n The
declarations/lodash.d.ts:432
↓ 4 callers
Method
finalize
()
src/Profiler.ts:31
↓ 4 callers
Method
findAllowedRooms
(origin, destination, options = {})
lastStableBuild/main.js:823
↓ 4 callers
Method
findNearestEmpty
(cart: Agent, pullTarget?: EnergyStructure)
src/ai/missions/RefillMission.ts:138
↓ 4 callers
Method
findPartnerships
(creeps, role)
lastStableBuild/main.js:2937
↓ 4 callers
Method
findPavedPath
(start, finish, rangeAllowance)
lastStableBuild/main.js:3014
↓ 4 callers
Method
healCreeps
()
lastStableBuild/main.js:9371
↓ 4 callers
Function
healedAmount
(healer: Agent, shortRange: boolean)
src/ai/missions/RaidMission.ts:319
↓ 4 callers
Method
include
* @see _.includes
declarations/lodash.d.ts:6691
↓ 4 callers
Method
init
* Occurs before operation phases
src/ai/Empire.ts:36
↓ 4 callers
Method
initPosition
(pos: RoomPosition)
src/ai/Traveler.ts:382
↓ 4 callers
Method
isEmpty
* Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or * jQuery-like collection with a le
declarations/lodash.d.ts:11138
↓ 4 callers
Method
loadFromSource
(source)
lastStableBuild/main.js:2748
↓ 4 callers
Method
pop
()
declarations/lodash.d.ts:233
↓ 4 callers
Method
queueSquad
(name, type, boostlLevel)
lastStableBuild/main.js:8742
↓ 4 callers
Method
queueSquad
(name: string, type: string, boostlLevel?: number)
src/ai/operations/RaidOperation.ts:339
↓ 4 callers
Method
recalculateLayout
(layoutType)
lastStableBuild/main.js:10085
↓ 4 callers
Method
repairLayout
(structure)
lastStableBuild/main.js:10186
↓ 4 callers
Method
serializePath
(startPos: RoomPosition, path: RoomPosition[], display = true)
src/ai/Traveler.ts:429
↓ 4 callers
Method
setSpawnGroup
(spawnGroup)
lastStableBuild/main.js:2565
↓ 4 callers
Method
spawn
(build: string[], name: string, memory?: any, reservation?: SpawnReservation)
src/ai/SpawnGroup.ts:37
↓ 4 callers
Method
spawnFromClosest
(pos: RoomPosition, body: string[], name: string)
src/ai/Empire.ts:105
↓ 4 callers
Method
toArray
* Converts value to an array. * * @param value The value to convert. * @return Returns the converted array.
declarations/lodash.d.ts:11638
↓ 4 callers
Method
toString
* Produces the result of coercing the unwrapped value to a string. * * @return Returns the coerced string value.
declarations/lodash.d.ts:4484
↓ 3 callers
Method
actions
* Occurs after operation phases
src/ai/Empire.ts:50
↓ 3 callers
Method
addAllyRoom
(roomName)
lastStableBuild/main.js:639
↓ 3 callers
Method
addCreepsToMatrix
(room: Room, matrix: CostMatrix)
src/ai/Traveler.ts:424
↓ 3 callers
Method
addStructurePosition
(pos, structureType, overwrite = false)
lastStableBuild/main.js:11449
↓ 3 callers
Method
addStructurePosition
(pos: RoomPosition, structureType: string, overwrite = false)
src/ai/FlexGenerator.ts:153
↓ 3 callers
Method
analyzeResources
(room, swap = false)
lastStableBuild/main.js:725
↓ 3 callers
Method
calculateBodyCost
(body)
lastStableBuild/main.js:1203
↓ 3 callers
Method
calculateBodyCost
(body: string[])
src/ai/SpawnGroup.ts:101
↓ 3 callers
Method
canTrade
(room: Room)
src/ai/TradeNetwork.ts:259
↓ 3 callers
Method
findBuilderPotency
()
src/ai/missions/BuilderMission.ts:313
↓ 3 callers
Method
findClosest
(origin: {pos: RoomPosition}, destinations: T[], options: FindClosestOptions = {
src/ai/RoomHelper.ts:11
↓ 3 callers
Method
findHurtCreep
(defender)
lastStableBuild/main.js:7237
↓ 3 callers
Method
findLowestEmpty
(cart, pullTarget)
lastStableBuild/main.js:3399
↓ 3 callers
Method
findLowestEmpty
(cart: Agent, pullTarget?: StructureTower)
src/ai/missions/DefenseMission.ts:140
↓ 3 callers
Method
findMinerStorage
()
src/ai/missions/MiningMission.ts:307
↓ 3 callers
Method
findNearestEmpty
(cart, pullTarget)
lastStableBuild/main.js:3262
↓ 3 callers
Method
first
* Gets the first element of array. * * @alias _.head * * @param array The array to query. * @return Retur
declarations/lodash.d.ts:1166
↓ 3 callers
Method
getCreepMatrix
(room: Room)
src/ai/Traveler.ts:415
↓ 3 callers
Method
groupBy
* Creates an object composed of keys generated from the results of running each element of collection through * iteratee. The corresponding v
declarations/lodash.d.ts:6452
↓ 3 callers
Method
isFull
(margin = 0)
src/ai/missions/Agent.ts:91
↓ 3 callers
Method
isFullHealth
(agent: Agent, margin = 0)
src/ai/missions/ZombieMission.ts:192
↓ 3 callers
Method
maxUnits
(body, proportion)
lastStableBuild/main.js:1219
↓ 3 callers
Method
maxUnits
(body: string[], proportion?: number)
src/ai/SpawnGroup.ts:120
↓ 3 callers
Method
orderCount
(type, resourceType, adjustPrice)
lastStableBuild/main.js:532
↓ 3 callers
Method
orderCount
(type: string, resourceType: string, adjustPrice?: number)
src/ai/MarketTrader.ts:172
↓ 3 callers
Method
rememberBattery
* Find the nearest energy source with greater than 50 energy, cache with creep memory; * @returns {Creep | StructureContainer}
src/ai/missions/Agent.ts:697
↓ 3 callers
Method
retrieve
(target: Creep|Structure, resourceType: string, options?: TravelToOptions, amount?: number)
src/ai/missions/Agent.ts:100
↓ 3 callers
Method
sellExcess
(room, resourceType, dealAmount)
lastStableBuild/main.js:488
↓ 3 callers
Method
serialize
* Returns a compact representation of this CostMatrix which can be stored via JSON.stringify.
declarations/screeps.d.ts:1428
↓ 3 callers
Method
setDefaultBoostLevel
(level)
lastStableBuild/main.js:8772
↓ 3 callers
Method
setDefaultBoostLevel
(level: number)
src/ai/operations/RaidOperation.ts:371
↓ 3 callers
Method
setDefaultType
(squadType)
lastStableBuild/main.js:8765
↓ 3 callers
Method
setDefaultType
(squadType: string)
src/ai/operations/RaidOperation.ts:364
↓ 3 callers
Method
setMaxSquads
(max)
lastStableBuild/main.js:8737
↓ 3 callers
Method
setMaxSquads
(max: number)
src/ai/operations/RaidOperation.ts:333
↓ 3 callers
Method
splice
(start: number)
declarations/lodash.d.ts:237
↓ 3 callers
Method
split
* Splits string by separator. * * Note: This method is based on String#split. * * @param separator The separator p
declarations/lodash.d.ts:14734
↓ 3 callers
Method
stealNearby
(stealSource: string)
src/ai/missions/Agent.ts:167
↓ 2 callers
Method
_observeRoom
(roomName: string)
declarations/custom.d.ts:160
↓ 2 callers
Method
_repair
(target: Structure | Spawn)
declarations/custom.d.ts:177
↓ 2 callers
Method
_send
(resourceType: string, amount: number, roomName: string, description?: string)
declarations/custom.d.ts:171
↓ 2 callers
Method
actions
* Occurs after operation phases
lastStableBuild/main.js:387
↓ 2 callers
Method
addNuke
(activeNuke)
lastStableBuild/main.js:803
↓ 2 callers
Method
addNuke
(activeNuke: {tick: number; roomName: string})
src/ai/WorldMap.ts:70
↓ 2 callers
Method
addRemaining
(xDelta, yDelta, save = true)
lastStableBuild/main.js:11404
↓ 2 callers
Method
addRemaining
(xDelta: number, yDelta: number, save = true)
src/ai/FlexGenerator.ts:105
↓ 2 callers
Method
allowedCount
(structureType, level)
lastStableBuild/main.js:10119
← previous
next →
101–200 of 2,330, ranked by callers