EdenPlus / screeps

0 stars 1 forks source link

Devised Implementations of Enhanced Technologies #13

Open EdenPlus opened 6 years ago

EdenPlus commented 6 years ago

Creeps:

  1. Scientist (New Transfer Variant/Job) - Transfer Creep, either dedicated, or as a job type that can be added into the jobs. Purpose is to transfer minerals to/from storage/terminal/labs/extractors.

Plan Queue:

  1. Walls/Ramparts (Placement logic) - Scan the outermost region based on the following theorized system:
    if (is not walkable & previous = false)
    previous = false
    else if (is not walkable & previous = true)
    previous = false
    plan 2nd edge boundary of exit
    else if (is walkable & previous = false)
    previous = true
    plan 1st edge boundary of exit
    plan two walls corresponding to this tile
    else if (is walkable & previous = true)
    previous = true
    plan two walls corresponding to this tile
  2. Universal planQueue in global memory with items being added with their intended room as an internal reference.

    Multi-room AI

  3. Cross room source harvesting (similar to the way the player Matty sends out creeps to gather energy from sources in rooms uncontrolled by him)
EdenPlus commented 6 years ago

My theory behind the wall code is that it will setup wall plans then it will find a path to the controller in the four adjacent rooms. Using that path it will find which wall in the barricade should be switched to a rampart.