16972 Commits

Author SHA1 Message Date
Guillaume Melquiond
419cf84a9d Added visitors for converting config attributes.
(Partial fix for bug #16363.)

This brings the profile footprint of pushing units to Lua tables from
15% to 5%.
2010-08-06 16:31:01 +00:00
Guillaume Melquiond
ac99cc5f9d Simplified function naming. 2010-08-06 16:30:57 +00:00
Guillaume Melquiond
3e23887400 Avoided copying units put on map if they are temporary.
(Partial fix for bug #16363.)

This brings the profile footprint of putting units on map from 20% to
10% (not counting the actual cost of creating them).
2010-08-06 14:46:05 +00:00
Guillaume Melquiond
88245b8ff9 Avoided copying config objects just before deleting them from units.
(Partial fix for bug #16363.)

This brings the profile footprint of config copy constructor from 18% to 8%.
2010-08-06 14:05:09 +00:00
Guillaume Melquiond
8b1e74f181 Delayed further the creation of config objects.
(Partial fix for bug #16363.)

This brings the profile footprint of add_anims from 30% to 24%.
2010-08-06 12:24:51 +00:00
Guillaume Melquiond
091f2f6404 Optimized the special case [filter_wml][variables] when matching units.
(Partial fix for bug #16363.)

This brings the profile footprint of matches_filter from 28% to 3%.
2010-08-06 10:33:04 +00:00
Guillaume Melquiond
ccccc3709f Sped up unit animation preparation...
...by following all the branches at once and by lazily merging
children. (Partial fix for bug #16363.)

This brings the profile footprint of prepare_animation from 44% to 6%.
2010-08-06 08:38:40 +00:00
Guillaume Melquiond
766a0b5e96 Made clearer the distinction between toplevel anmation tags...
...and inner (possibly conditional) tags.
2010-08-06 08:38:37 +00:00
Guillaume Melquiond
cbad10f588 Fixed compilation of ana. 2010-08-06 08:38:33 +00:00
Gabriel Morin
4a6e290860 Whiteboard/recall: constructor parameters and private members. 2010-08-05 23:01:11 +00:00
Gabriel Morin
49a24880f3 Whiteboard/recall: changed a parameter name. 2010-08-05 23:01:05 +00:00
Gabriel Morin
19a2d7d187 Whiteboard: change to recall interception code. 2010-08-05 23:01:00 +00:00
Gabriel Morin
e06409a2be Whiteboard: comments. 2010-08-05 23:00:54 +00:00
Guillermo Biset
10abd0ea67 More improvements to ANA's documentation,
...the doxygen generated output looks fairly good.
2010-08-05 19:06:30 +00:00
Guillermo Biset
87e1938367 Doxygen changes for ANA: Fix an image issue...
...and only include in the doxygen documentation the code in
ana/api. Documented the serializer module of ANA and inserted a
method.
2010-08-05 18:24:32 +00:00
Jody Northup
a8ffb103ce Prevented get_global_variable from occurring...
...before replay synchronization is reliable. Prevented
set_global_variable and clear_global_variable from storing any changes
while watching saved replays.
2010-08-05 13:08:38 +00:00
Gabriel Morin
c22e0f9c79 Whiteboard: code for recall interception. 2010-08-05 11:23:52 +00:00
Gabriel Morin
20806bbf9d Whiteboard: added skeleton for the recall action. 2010-08-05 11:23:45 +00:00
Timotei Dolean
379c4a222b allow skipping data/core in the '--preprocess' command...
...through define SKIP_CORE
2010-08-05 11:23:26 +00:00
Guillaume Melquiond
740c69c271 Added getter for active unit abilities. 2010-08-05 10:32:21 +00:00
Guillaume Melquiond
d8da47b5a0 Removed all the error logs for preprocessing,
...since they are useless now that preprocessor errors are no longer
silent.
2010-08-05 08:32:20 +00:00
Timotei Dolean
dc33534a37 add command line '--preprocess-input-macros' for specifying...
...a [preproc_define] file with macros
2010-08-04 21:34:43 +00:00
Timotei Dolean
5ac6cc88c1 make the preprocessor replace the existing macro if needed 2010-08-04 21:34:29 +00:00
Timotei Dolean
5926fab02d add command line "--preprocess-output-macros" for writing...
...the preprocessed macros to file
2010-08-04 21:34:13 +00:00
Timotei Dolean
de2b0eb060 optimize '--preprocess' but still read the preprocessed stream 2010-08-04 21:33:58 +00:00
Timotei Dolean
fc5d2906cb Revert 2010-08-04T16:34:07Z!timotei21@gmail.com as it breaked functionality 2010-08-04 21:33:44 +00:00
Guillermo Biset
d8c2e915fa Made stats collection in ANA mandatory...
...(removed start_collecting and stop_collecting) and transparent.
2010-08-04 21:01:48 +00:00
Guillaume Melquiond
273aaa38d7 Factored error handling of unit arguments. 2010-08-04 19:56:54 +00:00
Guillaume Melquiond
5654998573 Cleaned typing of bool attributes. 2010-08-04 19:37:27 +00:00
Guillaume Melquiond
d82d68e1f1 Moved [hide_unit] and [unhide_unit] implementations to Lua.
Added support for standard unit filters along the way. (Partial fix
for bug #16358.)
2010-08-04 19:37:24 +00:00
Guillaume Melquiond
ed57aeb786 Added accessors for hidden unit attribute. 2010-08-04 19:37:17 +00:00
Guillaume Melquiond
099066af89 Added setter for unit modifications. 2010-08-04 17:55:23 +00:00
Ali El Gariani
15bf9f4109 Kill unused broken feature: use a list of randomly selected...
...images for titlescreen.

That actually broke campaign credits when campaign didn't provide
images (titlescreen was used as default)
2010-08-04 17:24:58 +00:00
Timotei Dolean
4933817822 optimize the '--preprocess' by not reading the...
...preprocessed file when no write to cfg is enabled
2010-08-04 16:34:07 +00:00
Guillaume Melquiond
7d3ad3742f Fixed turn events not replaying on reset. 2010-08-04 14:50:10 +00:00
Guillaume Melquiond
9eca81f658 Moved initializations before replaying start events. 2010-08-04 14:46:57 +00:00
Guillaume Melquiond
0e1dbf4277 Fixed replays not displaying labels and items. 2010-08-04 14:46:54 +00:00
Guillaume Melquiond
cdd3e3494a Factored code to avoid replay discrepancies when resetting them. 2010-08-04 14:46:50 +00:00
Guillaume Melquiond
45fc96eda3 Fixed replays duplicating unit changes happening during start events. 2010-08-04 14:46:47 +00:00
Guillaume Melquiond
20836354f8 Fixed start events not being replayed. 2010-08-04 13:55:38 +00:00
Guillaume Melquiond
5d6ffea210 Properly reverted 2010-08-04T12:54:31Z!upthorn@gmail.com so that the engine actuals. 2010-08-04 13:55:34 +00:00
Jody Northup
9434b3192e reverting the changes to mp_sync framework at silene's request. 2010-08-04 13:27:57 +00:00
Jody Northup
b584b3b7af fixed get_global_variable to use mp_sync framework,
...slightly modified mp_sync framework to allow for usage during
events that occur before state_of_game->phase() = PLAY
2010-08-04 12:54:31 +00:00
Jody Northup
13a80923ab moved the persist_manager variable from playsingle controller...
...to base play_controller class, as replays will crash without it.
2010-08-04 12:51:54 +00:00
Guillaume Melquiond
412214910d Fixed logic for find_in when called from inside a unit filter. (Fix for bug #16344.) 2010-08-04 10:39:39 +00:00
Ali El Gariani
732bd390a4 Use 'orb' instead of 'ball' in game_config. 2010-08-04 03:22:25 +00:00
Ali El Gariani
c143c82cdf Use image::locator instead of game_config strings for hexes rendering. 2010-08-04 03:22:21 +00:00
Ali El Gariani
39faaf3fa2 Move all images game_config keys into [images] and drop the _image suffix 2010-08-04 03:22:15 +00:00
Ali El Gariani
6bcbae2f92 Rename some game_config key and add a reminder/test...
...about an unused feature (random titlescreen images)
2010-08-04 03:22:13 +00:00
Ali El Gariani
fc8d04f4c8 Un-hardcode linger_image 2010-08-04 03:22:07 +00:00