lp:~widelands-dev/widelands/ai-scheduler
Created by
TiborB
and last modified
This branch is reorganization of DefaultAI::think() function. This central function defines which "job" is to be run in this turn.
Up to now it is quite unfair and chaotic. Main problem is that functions lower on the list gets lesser chance to be run.
New approach is that every function has its due time and the one with oldest due time is run. This is more fair....
Number of such jobs (functions) is growing, right now there are about 15 of them.
Also this allows better statistics - counter what function how many times was run....
Branch merges
Propose for merging
No branches
dependent on this one.
- GunChleoc: Approve
-
Diff: 1233 lines (+307/-286)5 files modifiedsrc/ai/ai_help_structs.h (+7/-7)
src/ai/ai_hints.cc (+2/-2)
src/ai/ai_hints.h (+2/-2)
src/ai/defaultai.cc (+243/-238)
src/ai/defaultai.h (+53/-37)
Branch information
Recent revisions
This branch has not been scanned yet.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:widelands