Commit Graph

33471 Commits

Author SHA1 Message Date
Guillaume Melquiond
7388280fc8 Added a version of unit::get_ability_bool without the redundant location. 2009-05-21 16:21:13 +00:00
Guillaume Melquiond
efb60c4f67 Added a version of unit::get_abilities without the redundant location. 2009-05-21 16:21:06 +00:00
McShark
bc8b4a7183 Added src/server/player_network and src/server/room
WIN-Format for SCons, too (for easier diffs)
2009-05-21 15:36:28 +00:00
Mark de Wever
d6faddc2de Enable more gui unit tests. 2009-05-21 15:02:12 +00:00
Guillaume Melquiond
2ba3a1a2f7 Removed redundant parameters from...
...unit::start_animation, unit::set_idling, unit::redraw_unit, and
unit::refresh.
2009-05-21 14:57:53 +00:00
Guillaume Melquiond
ecbde8ef57 Used unit::loc_ for temporary units too.
Removed game_display::temp_unit_loc_. Removed legacy unit::set_standing.
2009-05-21 14:57:46 +00:00
Guillaume Melquiond
0dd288275e Removed redundant parameters from unit::set_selecting. 2009-05-21 14:57:40 +00:00
Guillaume Melquiond
adfd170240 Removed redundant parameter from unit::set_standing. 2009-05-21 14:57:36 +00:00
Guillaume Melquiond
f85f6821d7 Added current location to unit data. 2009-05-21 14:57:28 +00:00
Guillaume Melquiond
3877d61faf Uninlined complicated function. 2009-05-21 14:57:23 +00:00
Mark de Wever
39f39f83d9 Enable more gui unit tests. 2009-05-21 13:20:52 +00:00
Guillaume Melquiond
f8324bfd0a Simplified code, since visible units have their position known,
...so no need to use a full blown unit_map::iterator for them.
2009-05-21 11:26:26 +00:00
Iurii Chernyi
602177bce7 changelog entry to above commit.
Note to MVSC people: 'C4250 (method inherited via dominance)' warnings
are safe there - it is the intended behavior. Feel free to disable
them for ./src/ai or point me to a doc with how-to-disable, and I'll
do it myself.
2009-05-21 00:25:51 +00:00
Iurii Chernyi
04b7191335 fixed a segfault caused by formula ai self-reference-counting quirks,
...plus removed some accidential whitespace.
2009-05-21 00:18:42 +00:00
Iurii Chernyi
8bad423be1 Delayed initialization of formula AI
- moved it from constructor to on_create method. This is needed to
  simplify the initiazization process (which formerly called virtual
  methods of a not-yet-fully-created class)
2009-05-21 00:18:37 +00:00
Iurii Chernyi
4d1ea0035a AI Refactoring - hierarchial AI contexts,
...a step needed for easier writing of composite ai components.
2009-05-21 00:18:13 +00:00
Gunter Labes
901ad63e5a update scripts: s/~campaigns/~add-ons/ 2009-05-20 22:31:14 +00:00
Gunter Labes
6f91de97d8 check against the correct element 2009-05-20 22:30:43 +00:00
Mark de Wever
627913c953 Enable another gui related unit test. 2009-05-20 22:07:35 +00:00
Mark de Wever
c9b761ade0 Let cmake also use the environment variables.
It now uses CXXFLAGS and CFLAGS like autotools.
2009-05-20 17:13:49 +00:00
Jérémy Rosen
7e033fff4e fix idle anims not finishing correctly 2009-05-20 16:33:13 +00:00
Eric S. Raymond
8c07aedc6a Simplify parent assignment still further,
...and compute the inverse relationship in the initializatoopn of the
load_game dialog (it's not used yet).
2009-05-20 10:03:09 +00:00
Eric S. Raymond
e9e1a13506 Simplify parent-setting code. 2009-05-20 09:36:19 +00:00
Eric S. Raymond
0a53d44e5c parent-setting code needs to be a bit more clever...
...to handlke the case in which we save to the sanme filename as the
immediate previous save.  Also, add logging so we can debug any other
edge cases that come up.
2009-05-20 08:24:19 +00:00
Tomasz Śniatowski
b526430061 Fix Makefile.am (missing backslash) 2009-05-20 09:22:29 +01:00
Eric S. Raymond
dc6cfc7457 Code simplification;...
...it's not necessary for snapshots to copy the parent member.
2009-05-20 07:50:21 +00:00
Eric S. Raymond
942a26cd89 The entire lower layer of save threading, in three lines of code!
Tested.  Congrats to YogiHH for making this so easy - I had been
planning to wait a couple of weeks but there's no need.

(Also, a tiny refactoring step using replace_space2underbar that was
clearly intended but missed.)

No actual behavior changes yet; that will take significant
modifications to the load- and save-game dialogs.  This, however, is
*all* the savefile-level infrastructure required.
2009-05-20 05:52:30 +00:00
Eric S. Raymond
a6418e2599 Add parent field to gamestate structure; marshal it to and from cfgs.
This is about a third of the infrastructure required for save
threading, but does not yet touch the actual savegame code.
2009-05-20 02:37:34 +00:00
Tomasz Śniatowski
7347e99e74 add/modify header copyright info for new files 2009-05-19 22:49:27 +01:00
Tomasz Śniatowski
2b5d8368a3 Add some doxy docs 2009-05-19 22:49:08 +01:00
Tomasz Śniatowski
65cc766a60 rm accidentally commited file 2009-05-19 22:33:44 +01:00
Gunter Labes
9a24c33199 don't add an empty COPYING.txt 2009-05-19 19:02:18 +00:00
Gunter Labes
cd61f3f95e added a check for the GPL 2009-05-19 19:02:13 +00:00
Gunter Labes
1651550b41 tweaked an error message 2009-05-19 19:02:05 +00:00
Mark de Wever
000eb0d7bb Add strict compilation to cmake. 2009-05-19 18:17:12 +00:00
Iurii Chernyi
8ea95583d1 Fixed bug introduced by 2009-05-14T23:11:34Z!terraninfo@terraninfo.net
interpreting any non-empty value of boolean states as "true". Fixes
problem with 'all enemy units on Dark Forecast start poisoned'
2009-05-19 17:11:46 +00:00
Eric S. Raymond
7614f729c3 Note Dwarven Scout integration. 2009-05-19 14:30:23 +00:00
Eric S. Raymond
2d7778d701 Fix whitespace glitch. 2009-05-19 14:16:22 +00:00
Eric S. Raymond
af0a0a5292 Fully integrate Dwarven Scout line into mainline. 2009-05-19 14:09:26 +00:00
Gunter Labes
71a59825dc made the immediate northern border hexes void terrain...
...so units spawned there get somewhat sane terrain values (real fix
is to remove that ugly hack that is the northern border..)
2009-05-19 13:58:12 +00:00
Gunter Labes
f8def0c67d removed some non-portable parameters...
...and rewrote parameter parsing to be more readable
2009-05-19 11:08:15 +00:00
Tomasz Śniatowski
07349d0cc9 remove remaining lobby/not_logged_in hacks...
...from the game class as it is no loger used for these purposes
2009-05-19 10:02:32 +01:00
Tomasz Śniatowski
b0d4badfd3 the not_logged_in_ pseudo-game...
...was only used as a set of player identifiers, so use a std::set
instead of hacks in the game class.
2009-05-19 10:02:03 +01:00
Tomasz Śniatowski
613189f9f0 Create a room class separate from the game class, and use it for the lobby.
There remains some unfortunate duplicate code that will be removed in
the future, not all "lobby-hacks" have yet been removed from the game
class either.
2009-05-19 10:01:28 +01:00
Eric S. Raymond
24536f3c8b Banish another Earth-human name. 2009-05-19 02:26:18 +00:00
Gunter Labes
f12e68f588 always default to 0% defense on errors 2009-05-18 22:15:37 +00:00
Gunter Labes
55d9c688e1 consistently quote variables that may have spaces in them 2009-05-18 22:15:18 +00:00
Tomasz Śniatowski
97a8e86add in receive_with_timeout, assume an error is fatal...
...when no platform-specific checks are available
2009-05-18 22:01:02 +01:00
Tomasz Śniatowski
e18cf1b8fe add win32-specific error check...
...to receive_with_timeout instead of ignroing the error
2009-05-18 21:13:54 +01:00
Tomasz Śniatowski
45b7691bec remove unused code in send_buffer 2009-05-18 21:13:20 +01:00