MCPcopy Create free account

hub / github.com/bonzaiferroni/bonzAI / functions

Functions2,330 in github.com/bonzaiferroni/bonzAI

↓ 521 callersMethodlog
(phase: string, operation?: string, mission?: string)
src/TimeoutTracker.ts:13
↓ 203 callersMethodpush
(...items: T[])
declarations/lodash.d.ts:234
↓ 199 callersFunction__webpack_require__
(moduleId)
lastStableBuild/main.js:7
↓ 147 callersMethodisNearTo
(place: {pos: RoomPosition} | RoomPosition)
src/ai/missions/Agent.ts:274
↓ 144 callersMethodfindStructures
(structureType: string)
declarations/custom.d.ts:21
↓ 140 callersMethodtravelTo
(destination: {pos: RoomPosition} | RoomPosition, options?: TravelToOptions)
src/ai/missions/Agent.ts:86
↓ 130 callersMethodfind
* Iterates over elements of collection, returning the first element predicate returns truthy for. * The predicate is bound to thisArg and inv
declarations/lodash.d.ts:5937
↓ 126 callersMethodaddMission
* Add mission to operation.missions hash * @param mission
lastStableBuild/main.js:2325
↓ 119 callersMethodblindMoveTo
(destination: {pos: RoomPosition}, ops?: any, dareDevil?: boolean)
declarations/custom.d.ts:73
↓ 118 callersMethodfilter
* Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The * predicate is bound to thisArg
declarations/lodash.d.ts:5761
↓ 83 callersMethodheadCount
* General purpose function for spawning creeps * @param roleName - Used to find creeps belonging to this role, examples: miner, energyCart
lastStableBuild/main.js:2582
↓ 71 callersMethodsortBy
* Creates an array of elements, sorted in ascending order by the results of running each element in a * collection through iteratee. This met
declarations/lodash.d.ts:8690
↓ 64 callersMethodconfigBody
(config)
lastStableBuild/main.js:2678
↓ 63 callersMethodworkerBody
* Returns creep body array with desired number of parts in this order: WORK → CARRY → MOVE * @param workCount * @param carryCount *
lastStableBuild/main.js:2665
↓ 62 callersMethodlookForStructure
(structureType: string)
declarations/custom.d.ts:63
↓ 60 callersMethodhead
* @see _.first
declarations/lodash.d.ts:1337
↓ 59 callersMethodgetObjectById
* Get an object with the specified unique ID. It may be a game object of any type. Only objects from the rooms which are visible to you can be accesse
declarations/screeps.d.ts:936
↓ 58 callersMethodisNearExit
(range: number)
declarations/custom.d.ts:64
↓ 56 callersMethodsum
* Gets the sum of the values in collection. * * @param collection The collection to iterate over. * @param iteratee The fun
declarations/lodash.d.ts:12050
↓ 54 callersMethodidleOffRoad
* Can be used to keep idling creeps out of the way, like when a road repairer doesn't have any roads needing repair * or a spawn refiller who cur
src/ai/missions/Agent.ts:138
↓ 53 callersMethodfloor
* Calculates n rounded down to precision. * * @param n The number to round down. * @param precision The precision to round
declarations/lodash.d.ts:11783
↓ 52 callersMethodkeys
* Creates an array of the own enumerable property names of object. * * Note: Non-object values are coerced to objects. See the ES sp
declarations/lodash.d.ts:13485
↓ 49 callersMethodset
* Sets `value` to `key` of the cache. * @param key The key of the value to cache. * @param value The value to cache. * @ret
declarations/lodash.d.ts:128
↓ 48 callersMethodmin
* Gets the minimum value of collection. If collection is empty or falsey Infinity is returned. If an iteratee * function is provided it’s inv
declarations/lodash.d.ts:11928
↓ 47 callersMethodceil
* Calculates n rounded up to precision. * * @param n The number to round up. * @param precision The precision to round up t
declarations/lodash.d.ts:11754
↓ 44 callersMethodgetPositionAtDirection
(direction: number, range?: number)
declarations/custom.d.ts:61
↓ 44 callersMethodtransfer
(target: Creep|Structure, resourceType: string, amount?: number)
src/ai/missions/Agent.ts:78
↓ 42 callersMethodmove
(direction: number)
src/ai/missions/Agent.ts:55
↓ 36 callersMethodheal
(target: Creep|Agent)
src/ai/missions/Agent.ts:64
↓ 35 callersMethodwithdraw
(target: Creep|Structure, resourceType: string, amount?: number)
src/ai/missions/Agent.ts:80
↓ 34 callersMethodconcat
* Creates a new array joining a wrapped array with any additional arrays and/or values. * * @param items * @return Returns
declarations/lodash.d.ts:4344
↓ 31 callersMethodsearch
* Find an optimal path between origin and goal. * * @param origin The start position. * @param goal goal A RoomPosition or an object co
declarations/screeps.d.ts:1328
↓ 30 callersMethodattack
(target: Creep|Structure)
src/ai/missions/Agent.ts:47
↓ 29 callersMethodpull
* Removes all provided values from array using SameValueZero for equality comparisons. * * Note: Unlike _.without, this method mutat
declarations/lodash.d.ts:1760
↓ 29 callersMethodyieldRoad
* another function for keeping roads clear, this one is more useful for builders and road repairers that are * currently working, will move off r
src/ai/missions/Agent.ts:551
↓ 27 callersMethodincludes
* Checks if target is in collection using SameValueZero for equality comparisons. If fromIndex is negative, * it’s used as the offset from th
declarations/lodash.d.ts:6780
↓ 26 callersMethodremove
* Removes all elements from array that predicate returns truthy for and returns an array of the removed * elements. The predicate is bound to
declarations/lodash.d.ts:1870
↓ 25 callersMethodbodyRatio
* Returns creep body array with the desired ratio of parts, governed by how much spawn energy is possible * @param workRatio * @param carr
lastStableBuild/main.js:2697
↓ 25 callersMethodrandom
* Produces a random number between min and max (inclusive). If only one argument is provided a number between * 0 and the given number is ret
declarations/lodash.d.ts:12237
↓ 24 callersMethodgetUsed
* Get amount of CPU time used from the beginning of the current game tick. Always returns 0 in the Simulation mode.
declarations/screeps.d.ts:956
↓ 24 callersMethodset
* Set the cost of a position in this CostMatrix. * @param x X position in the missionRoom. * @param y Y position in the missionRoom. *
declarations/screeps.d.ts:1414
↓ 23 callersMethodsay
(message: string, pub?: boolean)
src/ai/missions/Agent.ts:61
↓ 22 callersMethodmap
* Creates an array of values by running each element in collection through iteratee. The iteratee is bound to * thisArg and invoked with thre
declarations/lodash.d.ts:7149
↓ 22 callersMethodsuicide
()
src/ai/missions/Agent.ts:62
↓ 21 callersMethodadd
* Adds two numbers. * * @param augend The first number to add. * @param addend The second number to add. * @return
declarations/lodash.d.ts:11725
↓ 21 callersMethodpartCount
(partType: string)
declarations/custom.d.ts:72
↓ 20 callersMethodindexOf
* Gets the index at which the first occurrence of value is found in array using SameValueZero for equality * comparisons. If fromIndex is neg
declarations/lodash.d.ts:1394
↓ 19 callersMethodfleeHostiles
()
src/ai/missions/Agent.ts:382
↓ 19 callersMethodisPassible
(ignoreCreeps?: boolean)
declarations/custom.d.ts:62
↓ 19 callersMethodsquadTravel
(leader: Agent, follower: Agent, target: {pos: RoomPosition}, options?: TravelTo
src/ai/missions/Agent.ts:848
↓ 19 callersMethodtravelTo
(creep, destination, options = {})
lastStableBuild/main.js:863
↓ 17 callersMethodend
(identifier: string)
src/Profiler.ts:8
↓ 17 callersMethodfindMemoStructure
(structureType: string, range: number, immediate?: boolean)
declarations/custom.d.ts:68
↓ 17 callersMethodforEach
* Iterates over elements of collection invoking iteratee for each element. The iteratee is bound to thisArg * and invoked with three argument
declarations/lodash.d.ts:6213
↓ 17 callersMethodgetRoomCoordinates
* Return missionRoom coordinates for a given Room, authored by tedivm * @param roomName * @returns {{x: (string|any), y: (string|any), x_dir
src/ai/WorldMap.ts:282
↓ 17 callersMethodmax
* Gets the maximum value of collection. If collection is empty or falsey -Infinity is returned. If an iteratee * function is provided it’s in
declarations/lodash.d.ts:11824
↓ 16 callersMethodhasLoad
* General purpose checking for creep load * @param creep * @returns {boolean}
lastStableBuild/main.js:2710
↓ 16 callersMethodhasLoad
()
src/ai/missions/Agent.ts:120
↓ 16 callersMethodidleNear
(creep, place, desiredRange = 3)
lastStableBuild/main.js:2884
↓ 16 callersMethodopenAdjacentSpots
(ignoreCreeps?: boolean)
declarations/custom.d.ts:60
↓ 16 callersMethodrepair
(id, hits)
lastStableBuild/main.js:2422
↓ 16 callersMethodstart
(identifier: string, consoleReport = false, period = 5)
src/Profiler.ts:3
↓ 15 callersMethodrepair
(target: Structure)
src/ai/missions/Agent.ts:59
↓ 15 callersMethodshift
()
declarations/lodash.d.ts:235
↓ 14 callersMethodharvest
(source: Source|Mineral)
src/ai/missions/Agent.ts:54
↓ 14 callersMethodlast
* Gets the last element of array. * * @param array The array to query. * @return Returns the last element of array.
declarations/lodash.d.ts:1528
↓ 14 callersMethodobserveRoom
(roomName: string, purpose?: string, override?: boolean)
declarations/custom.d.ts:161
↓ 13 callersMethodfindTravelPath
(origin: {pos: RoomPosition}, destination: {pos: RoomPosition}, options: TravelToOpt
src/ai/Traveler.ts:139
↓ 13 callersMethodgetSpawnGroup
(roomName)
lastStableBuild/main.js:549
↓ 13 callersMethodsend
(resourceType: string, amount: number, roomName: string, description?: string)
declarations/custom.d.ts:172
↓ 13 callersMethodvalue
* Executes the chained sequence to extract the unwrapped value. * * @alias _.run, _.toJSON, _.valueOf * * @return
declarations/lodash.d.ts:4496
↓ 12 callersMethoddismantle
(target: Structure)
src/ai/missions/Agent.ts:51
↓ 12 callersMethodgetBattery
(structureType?: string)
declarations/custom.d.ts:150
↓ 12 callersMethodmoveItOrLoseIt
* Moves a creep to a position using creep.blindMoveTo(position), when at range === 1 will remove any occuping creep * @param position * @par
src/ai/missions/Agent.ts:510
↓ 12 callersMethodnegaDirection
(dir: string)
src/ai/WorldMap.ts:263
↓ 12 callersMethodrangedMassAttack
()
src/ai/missions/Agent.ts:58
↓ 11 callersMethoddefaults
* Assigns own enumerable properties of source object(s) to the destination object for all destination * properties that resolve to undefined.
declarations/lodash.d.ts:12522
↓ 11 callersMethodgetSpawnGroup
(roomName: string)
src/ai/Empire.ts:57
↓ 10 callersMethodfindRelativeRoomName
(roomName: string, xDelta: number, yDelta: number)
src/ai/WorldMap.ts:171
↓ 10 callersMethodidleNear
(place: {pos: RoomPosition}, acceptableRange = 1, cachePos = false, allowSwamp = true)
src/ai/missions/Agent.ts:184
↓ 10 callersMethodisString
* Checks if value is classified as a String primitive or object. * * @param value The value to check. * @return Returns tru
declarations/lodash.d.ts:11505
↓ 10 callersMethodprocureEnergy
* General-purpose energy getting, will look for an energy source in the same room as the operation flag (not creep) * @param creep * @para
lastStableBuild/main.js:2759
↓ 10 callersMethodprocureEnergy
* General-purpose energy getting, will look for an energy source in the same missionRoom as the operation flag (not creep) * @param creep *
src/ai/missions/Agent.ts:771
↓ 10 callersMethodtransferEverything
(target: Creep|StructureContainer|StructureStorage|StructureTerminal)
src/ai/missions/Agent.ts:626
↓ 9 callersMethodfleeByPath
(fleeObjects: {pos: RoomPosition}[], fleeRange: number, fleeDelay: number, confineToRoom = false)
src/ai/missions/Agent.ts:386
↓ 9 callersMethodrangedAttack
(target: Creep|Structure)
src/ai/missions/Agent.ts:57
↓ 9 callersMethodrememberStructure
* Find a structure, cache, and invalidate cache based on the functions provided * @param findStructure * @param forget * @param immedia
src/ai/missions/Agent.ts:645
↓ 9 callersMethodround
* Calculates n rounded to precision. * * @param n The number to round. * @param precision The precision to round to.
declarations/lodash.d.ts:12020
↓ 9 callersMethodsquadTravel
(attacker, healer, target, ops)
lastStableBuild/main.js:7293
↓ 9 callersMethodsquadTravel
(leader, follower, destination, range = 1)
lastStableBuild/main.js:9332
↓ 8 callersMethodcacheTransportAnalysis
* Used to determine cart count/size based on transport distance and the bandwidth needed * @param distance - distance (or average distance) from
lastStableBuild/main.js:2725
↓ 8 callersMethodfindRelativeRoomDir
(origin: string, otherRoom: string)
src/ai/WorldMap.ts:219
↓ 8 callersMethodlayoutCoords
(structureType)
lastStableBuild/main.js:10126
↓ 8 callersMethodparseInt
* Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used * unless value is a hexadecimal, in
declarations/lodash.d.ts:14649
↓ 8 callersMethodpickup
(resource: Resource)
src/ai/missions/Agent.ts:56
↓ 8 callersMethodrecycleCreep
(creep)
lastStableBuild/main.js:2905
↓ 8 callersMethodroomTypeFromName
(roomName: string)
src/ai/WorldMap.ts:301
↓ 7 callersMethodbuild
(target: ConstructionSite)
src/ai/missions/Agent.ts:49
↓ 7 callersMethodcheckOccupied
(roomName: string)
src/ai/Traveler.ts:450
↓ 7 callersMethodfindMissionTarget
(possibleTargets)
lastStableBuild/main.js:9542
next →1–100 of 2,330, ranked by callers