This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Correct behavior of 'speed-occupant-effect' table?


Hello,

  The documentation for 'speed-occupant-effect' states:
######

TableUU: speed-occupant-effect u1 u2 -> n%

This table is the percent change in the speed of type u1 for each 
occupant of type u2. If the basic speed of u1 is 0, then the 
multiplication is performed as if the speed were 1 instead. 
Defaults to 100. 

######
but I see no indication in the code that a speed of 0 is handled 
in a special manner. I suppose this is yet another case of legacy 
documentation not reflecting the reality of modern Xconq code.

So the question is, what should we do to fix it?
I personally don't like the idea two values (0% and 100%) meaning 
the same thing wrt the application of this table, so I think we 
should leave it the way it is, and change the docs to reflect 
this.
Perhaps we should have an additional TableUU, 
'occupant-adds-speed'. This would be more useful than a 
multiplicative factor in some cases, such as the one I have in 
mind (up to 2 tugboats can be "occupants" of a chain of barges, 
each one adding 100% speed to the naturally ACP 1, speed 0 
barges).

Eric


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]