nint22 / dwarfcraft

Automatically exported from code.google.com/p/dwarfcraft
Other
0 stars 0 forks source link

Create a global jobs pool, not let AI individually find projects #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As of now, dwarves will attempt to choose their own job, but this leads to 
resource racing. Instead, create a global jobs system that allows centralized 
job distribution.

Original issue reported on code.google.com by nin...@gmail.com on 3 Mar 2012 at 1:09

GoogleCodeExporter commented 9 years ago
General design notes:

Create a jobs class that can access the world, designations, and structures. A 
function exists that returns tasks based on a given entitie's job preference. 
This "task" is a source and target locations: the source is where the dwarf has 
to go to, while the target is what must be changed.

Path planning is left to the dwarf's own processing.

Original comment by nin...@gmail.com on 5 Mar 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Decided against it, as there are ways of speeding up bottle necks (mainly the 
path planner) outside of choking threads

Original comment by nin...@gmail.com on 14 Mar 2012 at 6:32