Steven Panek
9bd93c5d60
UtBS: updated strings from wesnoth-help.
2013-01-04 20:06:25 +00:00
J. Tyne
f89139da29
Mark some constructors explicit...
...
...and block assignment for a noncopyable class.
2013-01-04 06:03:55 +00:00
J. Tyne
e14c1c8722
Documenting some functions.
2013-01-04 00:17:46 +00:00
J. Tyne
119d02ecbd
Improve the laziness of the lazy bulding of unit types.
2013-01-04 00:09:55 +00:00
J. Tyne
273b2ccc62
Make unit_type_data::build_unit_type() public,
...
...and update various parts of the code to call it (instead of using
unit_type_data::find() to "find" a known unit_type).
There was one call in the editor's code where I am unsure if there are
supposed to be side effects other than building the unit_type. So I
left the code as-is and just added a comment for someone else to
evaluate later.
2013-01-03 23:29:45 +00:00
Steven Panek
c97cf24d44
Updated the Latin translation.
2013-01-03 21:54:13 +00:00
J. Tyne
c5564c1bd1
Push the logic controlling incremental building of unit types...
...
...into the unit_type class.
2013-01-03 21:51:06 +00:00
Elvish_Hunter
aab7c8afcf
Lua: added new helper.shuffle() function
2013-01-03 13:22:15 +00:00
Elvish_Hunter
3397a38cff
Lua: added new wesnoth.get_time_stamp() function
2013-01-03 13:19:16 +00:00
J. Tyne
6434e6eea9
Convert spaces to tabs.
2013-01-03 06:08:05 +00:00
J. Tyne
d374ffdf81
Relink documentation with what it documents by removing unused declaration.
2013-01-03 06:05:37 +00:00
J. Tyne
4555889028
Document and use (existing) non-empty guarantee for unit_type::genders().
2013-01-03 05:34:46 +00:00
J. Tyne
83958a10fb
Use unit_type::race() instead of getting the race id...
...
...then searching for a matching unit_race.
2013-01-03 05:00:38 +00:00
J. Tyne
76285dd388
Rename unit_type::race_ptr() to unit_type::race().
...
This is for consistency with unit::race(), as both functions return
the same kind of data.
2013-01-03 04:28:58 +00:00
J. Tyne
239b4e30b4
Rename unit_type::race() to unit_type::race_id().
...
This is for more consistent naming of functions (this function returns a string,
while unit::race() returns a pointer to unit_race).
2013-01-03 03:07:03 +00:00
J. Tyne
8052889276
Use symbolic constants instead of literals...
...
...for string representations of genders.
This is probably at best an immeasurably small optimization, but maybe
it will save a typo at some point in the future.
2013-01-03 02:07:16 +00:00
J. Tyne
c1f854e877
Less convoluted implementation of string_gender().
2013-01-03 01:30:56 +00:00
J. Tyne
6c01ba329d
Uniformize (and document) the use of a dummy race...
...
...to guarantee certain pointers are never NULL.
(The pointers cannot be references because they sometimes need to
change what they point to.)
2013-01-02 05:46:10 +00:00
Simon Forsyth
8064f893c0
Recompress human3.png as it was not being loaded properly with my current png library
2013-01-02 05:00:19 +00:00
Fabian Müller
d6fd3d00f6
Adds a check for not displaying null hotkeys in the preferences dialog.
2013-01-02 00:56:48 +00:00
Ignacio R. Morelle
432c61dd89
Update changelog
2013-01-01 22:34:41 +00:00
Ignacio R. Morelle
bafdbfad40
preferences: Better tooltip replacement for the new lobby option...
...
...from 2013-01-01T19:56:28Z!shadowm@wesnoth.org
2013-01-01 22:34:15 +00:00
J. Tyne
627f7fc872
Eliminate an unneeded (and not deleted?) copy of a unit during a recall.
2013-01-01 20:21:19 +00:00
J. Tyne
79aec1d857
The need for a replay_undo object in ai::recruit_result::do_execute()...
...
...was removed in 2009-07-29T01:48:33Z!ai0867@gmail.com.
2013-01-01 20:08:17 +00:00
Ignacio R. Morelle
0a06043a79
preferences: Demote new lobby option to Advanced Preferences...
...
...and improve/replace related UI strings to avoid misleading players
2013-01-01 19:56:28 +00:00
J. Tyne
070031a53b
More merging of codepaths for recalls.
...
There were some discrepancies regarding screen invalidation, but the
merged version appears to work for all cases.
2013-01-01 19:29:39 +00:00
Mark de Wever
43b71f2ff0
New year copyright update.
2013-01-01 09:22:03 +00:00
Ignacio R. Morelle
26e8e71a4c
website/g.w.o: New Year copyright update
2013-01-01 01:46:40 +00:00
Ignacio R. Morelle
cd9a6feacf
website/e.w.o: New Year copyright update
2013-01-01 01:45:44 +00:00
J. Tyne
d09a140c0f
When a unit is recruited, it is the gender list of the original type...
...
...that determines the unit's gender, not what might be overridden in
the final (gender-specific) type. So a correct test for there being
more than one gender should check the originally specified unit type,
not the resulting unit type.
2013-01-01 01:10:23 +00:00
J. Tyne
ef249c41ef
Handle an oddball case where a human delays shroud updates...
...
...before turning over control to the AI.
2013-01-01 00:54:56 +00:00
J. Tyne
aab065b004
Respect the "Skip AI moves" preference when the AI recalls a unit.
2013-01-01 00:48:22 +00:00
Ignacio R. Morelle
30c8f93e6c
website: New Year copyright update
2013-01-01 00:47:00 +00:00
J. Tyne
86b64f9f71
Store DSU toggles and manual shroud updates in replays.
...
This should resolve the remaining reported bugs with sighted events.
2012-12-31 22:40:05 +00:00
Ignacio R. Morelle
849274c0f4
Amend changelog entry for 2012-12-23T04:15:40Z!shadowm@wesnoth.org...
...
...lacking additional information
2012-12-31 22:03:29 +00:00
J. Tyne
f61227e5b3
Use the undo stack during replays.
...
This is so that replays will be able to accurately replay delayed
shroud updates. (Using the undo stack could have been restricted to
teams using fog or shroud, but it is simpler to just generate the
stack for everyone.)
2012-12-31 21:57:23 +00:00
J. Tyne
beb4b111da
I missed a line that was supposed to be in 2012-12-31T19:58:45Z!jt_coding@verizon.net.
2012-12-31 21:30:47 +00:00
Steven Panek
1d2b2dff69
Updated the British English translation.
2012-12-31 21:14:43 +00:00
J. Tyne
1ded6ceeab
Rename namespace action back to "actions".
...
This is to avoid potential name clashes with any classses named
"action", like what shadowm found in the test suite. (The quick fix of
2012-12-31T05:35:28Z!jt_coding@verizon.net is now reverted in favor of this fix.) One complication
is that there is already an "ai:actions" namespace, so within the "ai"
namespace, the renamed namespace is qualified as "::actions".
2012-12-31 20:50:57 +00:00
J. Tyne
4105b0ba05
Merge three codepaths for recalling units (player, AI, and replay).
2012-12-31 19:58:45 +00:00
J. Tyne
bcff05a7fd
Resolve an ambiguous name.
...
This might be just a quick fix so things compile for now.
I'll get back to this tomorrow.
2012-12-31 05:35:28 +00:00
Ignacio R. Morelle
0e6e1eb04c
gui2/taddon_filter_options: Keep track of the add-on type...
...
...fields and implement a button to toggle them all at once
Also needed to do some refactoring to achieve the tracking part. Not
that anyone really needs to see that in a separate commit.
2012-12-31 02:28:34 +00:00
Ignacio R. Morelle
21e46bf2ba
gui2/taddon_filter_options: Swap left and right option columns
...
Having the listbox to the right seemed arbitrary and not particularly
pleasing from an aesthetic point of view.
2012-12-31 02:28:17 +00:00
Ignacio R. Morelle
b0c68e6779
gui2/taddon_filter_options: Rearrange grid layout...
...
...for the areas containing the type checkboxes and the status listbox
The previous grid layout seemed strictly presentational and rather
unhelpful from an organizational/semantic standpoint. The new layout
should also make a couple of upcoming changes to the dialog's widget
arrangement and contents easier to implement.
2012-12-31 02:27:48 +00:00
J. Tyne
9edc088714
Merge three codepaths for recruiting units (player, AI, and replay).
2012-12-31 01:52:09 +00:00
J. Tyne
e0d4378c88
Expanding the "action" namespace.
2012-12-31 01:31:13 +00:00
J. Tyne
2c6e0c1585
Expanding the "action" namespace.
2012-12-31 00:38:07 +00:00
Alexander van Gessel
d82762b87d
Split the 'not_living' unit status into...
...
...unpoisonable, undrainable and unplagueable
2012-12-31 01:03:53 +01:00
J. Tyne
6a6780af0d
Expanding the "action" namespace.
2012-12-30 22:50:10 +00:00
J. Tyne
93fb1f27c9
Rename namespace "actions" to "action" (I just think it will read better).
2012-12-30 22:34:29 +00:00