Thunderbrd
C2C War Dog
Is the unit related workRate(bool iMax) function exposed to Python? The doco says it is but I get a no such method error message. Also what is the iMax meaning?
1) Yes that is exposed to python via CyUnit. If there's an error in that, perhaps its something AIAndy or Koshling may be able to figure out but it looks mostly right to me. However, perhaps its supposed to be called as (bool bMax) rather than iMax. Nothing suggests it's changing in the translation:
Code:
int CyUnit::workRate(bool bMax)
2) The iMax meaning is - are we checking for the ultimate potential work output of the unit or are we checking for the current work output of the unit. If iMax is boolean false then there's a check to see if the unit can move still and if the unit cannot move for whatever reason (like having already moved) then the return for the function will be 0. If your checking for the pedia or really any other type of display purposes, its probably best if this is set to true (1).