Changes between Version 3 and Version 7 of Ticket #2206


Ignore:
Timestamp:
Oct 28, 2013, 11:52:41 AM (11 years ago)
Author:
Itms
Comment:

Okay, I tested it and now I understand ! I was totally unable to figure out how it worked because it's completely different of what I had in mind : you remember works when other orders are given while I remember works when they are ordered. I had not understand it when you explained it in your first comment, I apologise. 

What I like in your idea is above all the fact that the back to work button will show up less frequently.

So, thanks again for your help, I attach a new version of the patch. The problem with i0 may not be an error, but a different point of view ; I think we should slice the orderQueue from i (i.e. the first work order) and not from i0.

I fattened a bit backToWork because I think the back-to-work order should replace the queue, not just push work orders at its end.

I also reordered the functions in UnitAI, grouping backToWork with other workorders functions.

Next step : formation orders.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2206 – Description

    v3 v7  
    11This patch allows units to remember a queue of work orders, and not a single one (useful for instance when constructing several buildings).
     2
     3It also reduces the code and makes the button show up only when it's necessary (thanks mimo !)
     4
     5I am currently also solving the problem with formation members. For now the attached patch works fine for female citizens and alone workers.