Commit Graph

33387 Commits

Author SHA1 Message Date
Mark de Wever
4f19829bfc Remove the unused function twidget::layout_use_vertical_scrollbar.
Also remove some exta helpers in tgrid and tgrid::tchild.
2009-05-21 19:12:44 +00:00
Mark de Wever
cdbb8ef113 Remove the unused function twidget::layout_shrink_height. 2009-05-21 19:12:38 +00:00
Mark de Wever
6bc4253cea Remove the unused function twidget::can_shrink_width. 2009-05-21 19:12:33 +00:00
Mark de Wever
0fd7c53060 Remove the unused function twidget::layout_shrink_width. 2009-05-21 19:12:28 +00:00
Mark de Wever
90e84d2c72 Remove the unused function twidget::layout_fit_width.
Also remove the unused flags and forwarded functions in tgrid::tchild.
2009-05-21 19:12:11 +00:00
Guillaume Melquiond
8781dba15a Fixed name generation with respect to unspecified WML gender. 2009-05-21 18:48:06 +00:00
Mark de Wever
1a342d4976 Fix a compilation error. 2009-05-21 17:07:06 +00:00
Mark de Wever
6ab073dacb Remove the unused function twidget::layout_init2. 2009-05-21 16:50:17 +00:00
Mark de Wever
0228916c22 Remove the unused function twidget::layout_init. 2009-05-21 16:50:12 +00:00
Mark de Wever
c1f0ab4fb2 Remove the unused function twindow::layout2. 2009-05-21 16:50:04 +00:00
Mark de Wever
bcd91a83ad Remove the unused function twindow::layout. 2009-05-21 16:49:59 +00:00
Mark de Wever
95c838155a Use the properly layout function. 2009-05-21 16:49:54 +00:00
Mark de Wever
cfcca3b168 Properly load the language definitions. 2009-05-21 16:49:40 +00:00
Mark de Wever
f26755e96a Converted the old style casts to c++ style casts. 2009-05-21 16:38:22 +00:00
Mark de Wever
f97f738c57 Converted the old style casts to c++ style casts. 2009-05-21 16:38:08 +00:00
Guillaume Melquiond
a44ebc229d Merged unit::ability_tooltips and unit::unit_ability_tooltips. 2009-05-21 16:21:18 +00:00
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