51709 Commits

Author SHA1 Message Date
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
Anonymissimus
3347a92755 uint -> unsigned int
uint is not a standard type => compiler error
2012-12-30 19:53:48 +00:00
Matthias Schoeck
7d35decc9e Add missing apostrophe 2012-12-30 01:03:30 +00:00
Fabian Müller
9a0e5cbb9e Implementing feature request bug #19545...
...by applying the patch provided and adding an additional break
condition to prevent infinite looping.
2012-12-29 23:21:14 +00:00
Matthias Schoeck
55e2307be7 Add 2012 GCI students to credits 2012-12-29 22:02:27 +00:00
Matthias Schoeck
a54a6a75b4 Update changelogs and release notes 2012-12-29 21:51:01 +00:00
Matthias Schoeck
93ba347695 Remove all references to Wesnoth Lua Pack dbms debug function.
They were all commented out, but better to remove them altogether.
2012-12-29 20:20:56 +00:00
Matthias Schoeck
b138e47184 Introduce 18 different Micro AIs.
This includes the [micro_ai] tag, the code for the Micro AI engines
and 14 test scenarios.  Full documentation at
http://wiki.wesnoth.org/Micro_AIs
2012-12-29 20:05:55 +00:00
Steven Panek
528aebd76f Updated the Galician translation. 2012-12-29 18:42:19 +00:00
Simon Forsyth
cd9bc8e64f Validate moves from previous evaluations before executing them 2012-12-29 12:32:17 +00:00
Matthias Schoeck
bf7c8b9662 Use new syntax to include default (RCA) AI components 2012-12-29 05:28:32 +00:00
Ignacio R. Morelle
08e60f36e2 gui1: Forward keyboard-based selection or cursor manipulation events...
...from non-editable textboxes

This effectively removes the selection/cursor manipulation part of
2012-12-23T06:10:31Z!shadowm@wesnoth.org. Without obvious visual cues as to what textbox has the current
focus it is only good for confusing users. Additionally, at least two
existing GUI-based IRC programs seem to do without selection/cursor
manipulation on the channel/query view box.
2012-12-29 03:26:11 +00:00
Ignacio R. Morelle
d8d4ce1654 gui1: Rework textbox event forwarding to eliminate duplicate...
...(actually quadruplicate) events.  Changed from 2012-12-23T06:10:46Z!shadowm@wesnoth.org.

Due to the way focusing works, the focus switch in the middle of the
forwarding action would create a duplicate event for the origin textbox,
resulting in a duplicate event for the target (a total of four events to
process).

Instead, make the implementation of gui::textbox::handle_event()
forwarding-aware, and provide a wrapper for the events engine
implementation to use by default.
2012-12-29 03:25:05 +00:00
Ignacio R. Morelle
fccd55815b gui1: Make the content of disabled textboxes look like it
More specifically, blit with 30% opacity, and omit the highlight
background whenever there's a selection.
2012-12-29 03:24:47 +00:00