39 Commits

Author SHA1 Message Date
Dave White
994cd66cb0 fixed divide-by-0 error in AI 2004-09-27 22:56:49 +00:00
Guillaume Melquiond
15a4962a14 Switched to new logging system 2004-09-19 11:30:23 +00:00
Guillaume Melquiond
eb621ce3a2 Switched AI to the new logging system 2004-09-18 21:27:39 +00:00
Philippe Plantier
ac441889d9 [[Animation refactoring]]
* Refactoring of all animation code in unit_display and halo.

* Adding animated.hpp, and the animated<T> template.

* Partial rewrite of image.?pp for speed: looking up images was what
  was slowing the game

* Replacing all SDL_Surface*, and scoped_sdl_surface, with
  shared_sdl_surface, which was renamed surface.

* Optimizing halo movement when unit moves

* Inlining some stuff for performance reasons

* Optimizing invalide_all redraws

* Adding support for animated terrain images
2004-07-18 19:02:25 +00:00
Dave White
aeb6d675d9 fixed bug where tooltips could be left behind after 'load game' dialog.
Fixed bug where themes with multiple resolution specifiers could be
displayed incorrectly
2004-07-18 18:49:04 +00:00
Dave White
ac56917daa fixed assertion failure/infinite loop in AI logic 2004-06-13 23:20:43 +00:00
Dave White
ff620f6ca4 tweaked 'Crossroads' scenario 2004-06-04 20:20:41 +00:00
Dave White
cc4c49b763 various changes to AI 2004-06-02 22:14:10 +00:00
Dave White
6105dc96f3 added new ai parameters. Tweaked settings of Isle of Anduin scenario 2004-06-02 19:28:20 +00:00
Dave White
1c319625bc fixed file chooser dialog to work in Windows 2004-06-01 20:33:46 +00:00
Dave White
358e6fbca6 made AI handle its units being turned to stone properly 2004-05-27 20:07:50 +00:00
Dave White
3858092314 added 'defensive' grouping option 2004-05-22 00:22:11 +00:00
Dave White
abb3cb22be improved grouping 2004-05-22 00:20:47 +00:00
Dave White
7be1a80dc9 added AI parameter to control whether or not grouping is enabled 2004-05-21 20:48:11 +00:00
Dave White
4e5608d631 AI improvements to make it group better 2004-05-21 17:26:13 +00:00
Dave White
7e964f9441 made AI share its castle with allies 2004-05-19 00:25:42 +00:00
Dave White
187adbcf9b various AI improvements, tweaks to the campaign 2004-05-14 21:21:08 +00:00
Dave White
47c8c39a7b changes to make AI smarter 2004-05-13 02:03:28 +00:00
Dave White
accbc0f772 code refactoring - simplified the 'display' module 2004-04-22 18:58:59 +00:00
Dave White
d08630afe7 gave ability for terrain to have multiple aliases 2004-04-12 20:04:52 +00:00
Dave White
36a20a3a1e made the game more interactive during the AI's turn 2004-04-02 23:42:19 +00:00
Dave White
4ccc9cc647 added command line options 2004-02-27 19:18:55 +00:00
uid68803
a4d0c5e8fd AI improvements:
- made AI not leave its units idle when it has a large number of units

- AI will try to defend its leader better
2004-02-06 05:38:34 +00:00
uid68803
3b60f0443d made AI group units only when near enemy units 2004-02-05 23:29:22 +00:00
uid68803
e53da7161c made it so castles cannot appear on the very edge of the map.
tweaks to AI to try to make it group slightly better
2004-02-05 21:00:06 +00:00
uid68803
09ffaa3c4a improvement to AI to recognize power of its allies when deciding whether to retreat 2004-02-04 19:04:50 +00:00
uid68803
d923f82018 improved AI, including teaching it to sometimes retreat 2004-02-04 18:03:22 +00:00
uid68803
51d52bc379 fixed compile errors 2004-01-13 18:42:44 +00:00
uid68803
f037611951 fixed compile error 2004-01-13 18:34:09 +00:00
uid68803
1c3e548d92 restructure of AI code 2004-01-13 18:21:10 +00:00
uid68803
c38a116833 made minimap display fog and units 2004-01-09 22:23:38 +00:00
uid68803
688ad5a231 some AI improvements 2004-01-08 14:47:53 +00:00
uid68803
f00df9a721 changes to AI to try to solve the 'move in single file' problem 2004-01-07 22:41:53 +00:00
uid68803
2d9f035095 made it so healers can heal allies.
made it so that if a leader dies, all villages for that side become neutral
2004-01-05 19:20:09 +00:00
Dave White
0f3bfbd0b4 fixed bug in AI path finding 2003-11-18 18:31:43 +00:00
Dave White
afdb6002e6 added shroud. Tweaked some units, added new scenario 2003-10-01 09:23:38 +00:00
Dave White
b6f0f71260 Added go-to 2003-09-20 07:41:15 +00:00
Dave White
16d35b0b17 Fixed some warnings on -Wall 2003-09-19 13:57:37 +00:00
zas
ffa8b0bf4e Step1 of source move. 2003-09-19 10:21:25 +00:00