4. Creep spawning & requesting¶
Spawn creep based on what’s needed, not to much and not too many.
The following features will be included: - [ ] Next creep type - [ ] Parts - [ ] Spawns - [ ] Queue - [ ] Defense - [ ] Spawning
4.1. Function list¶
Name |
Description |
|---|---|
a |
b |
4.2. How is it going to work?¶
4.2.1. Next creep type¶
Get needed creep type based on logic like amount of jobs and amount of creeps.
4.2.2. Parts¶
Get the optimal body the room can build or when there is almost no energy a basic body will be send.
4.2.3. Spawns¶
Basic spawn commands to do stuff like filtering or getting them all.
4.2.4. Queue¶
Queue creep based on a priority value. Check if not a creep is already in queue before adding it again.
4.2.5. Defense¶
Enter defense mode when required and only spawn the required creeps or what is possible but the focus is then on energy in room and defending.
4.2.6. Spawning¶
Spawn a creep based on a few parameters that can be gathered from this part.