Commit graph

11 commits

Author SHA1 Message Date
Charles Dang
950a156712 Addressed most of the remaining whitespace issues from #2613
[ci skip]
2018-03-11 14:59:37 +11:00
Chris Beck
02d8d0a07d add warning about memory leaks reported by cppcheck 2014-06-09 11:39:21 -04:00
J. Tyne
cb64ca895d Correcting attack predictions for swarm...
...when there are previous combats to account for.

(It passes the attack simulator check.)

The basic problem with the old system is that it treated the number of
strikes as an independent variable, even though it depends on the
number of hit points.

There is some additional overhead with this method, but I optimized
some things for the common case (no swarm), and benchmarking indicated
a negligible 1% increase in run time when no units had swarm.
2012-10-19 21:27:07 +00:00
J. Tyne
4633f8688b Downgrade some fatal errors to warnings in the attack prediction stand-alone. 2012-10-13 17:42:14 +00:00
J. Tyne
ca4eaca58c A more interesting set of test cases for attack prediction checking...
...and benchmarking.

Biggest change: the first unit, which has all checked specials, gets
to actually attack.

(Previously, its swarm special and low hit points resulted in no attacks.)
2012-10-13 13:48:39 +00:00
J. Tyne
2edf94b9a4 A more varied set of test cases for attack prediction timings...
...and verification.

The old set had several deficiencies, such as every unit with slow
also having only one attack and having the swarm special (so usually
no attacks). This set keeps the specials and stats on separate cycles.
2012-10-05 21:27:54 +00:00
J. Tyne
b01e6a4854 Make wesnoth-attack-sim use the same rounding as the game. 2012-09-27 14:07:18 +00:00
J. Tyne
666f1c61b1 I got fewer false positives with wesnoth-attack-sim...
...by doubling the number of simulations.
2012-09-27 14:04:29 +00:00
J. Tyne
26643084e9 Improve some grammar in utility feedback. 2012-09-27 13:59:04 +00:00
J. Tyne
c00427c3ea Clean up the C code of wesnoth-attack-sim so it compiles without errors. 2012-09-27 13:51:26 +00:00
Eric S. Raymond
8e60c8463d Move tools stuff into utils (Ivanovic's suggestion).
This directory is going to go away.
2007-04-05 23:17:46 +00:00
Renamed from tools/wesnoth-attack-sim.c (Browse further)