53706 Commits

Author SHA1 Message Date
mattsc
932e9eafaf Liberty::The_Raid: Use Messenger Micro AI for wolf rider side
This also requires some rebalancing of the scenario: changing starting
positions of some units and modifying 3 hexes of the map.
2013-09-27 07:27:21 -07:00
mattsc
dbc3bffdef Liberty::The_Raid: strip trailing spaces in map file 2013-09-27 07:27:21 -07:00
Ignacio R. Morelle
adf1e3f7d5 gui2: Implement Pango markup flag for tmessage and related wrappers
This allows enabling Pango markup in gui2::show_message() and
gui2::show_error_message(), as well as the gui2::tmessage dialog they
depend upon. This was a TODO item mentioned in the implementation of
gui2::show_message(). The default continues to be to not enable markup.
2013-09-26 21:01:19 -03:00
fendrin
cd69ae8e95 Fixed wrong reference to a unit path function. 2013-09-26 23:40:01 +02:00
Elvish_Hunter
257c8aec88 wmllint: implemented new sanity check for leader and nozoc ellipses 2013-09-26 21:07:08 +02:00
Ignacio R. Morelle
671a57181c desktop_util: Use pointer to vector front() instead of data() result
Anonymissimus pointed out that std::vector::data() isn't supported
by all STL implementations (it's only required by C++11). Vectors are
supposed to be stored in contiguous memory, so we can use a pointer
to the first item instead to avoid a superfluous copy.
2013-09-26 15:47:49 -03:00
fendrin
41cb9ec3d0 Changelog updates, related to help browser and unit variants. 2013-09-26 20:41:33 +02:00
fendrin
deda49a0d7 Updates to the unit help browser.
Don't display base_units and variations twice.
Fix some linking according to the new situation (sectioned parents).
2013-09-26 20:41:33 +02:00
fendrin
a4f6249627 Support for the disable weapon special. 2013-09-26 20:41:33 +02:00
fendrin
5aa89dcd97 Basic support for base_unit sections.
Units which are base_units for variants are now displayed as sections
with their variants as topics in the help dialog.
2013-09-26 20:41:33 +02:00
fendrin
88d8547caf Insert some scopes to make the code more easy to read. 2013-09-26 20:41:32 +02:00
fendrin
669f2d58fe Show siblings and base units in the unit profile dialog. 2013-09-26 20:41:32 +02:00
fendrin
c145247ba4 Don't show active "disable" special weapons in the gui1 attack dialog. 2013-09-26 20:41:32 +02:00
fendrin
1679b4382f variation_id replaces the former variation_name.
The new [variation] attribute variation_id is now used to identify the
subtype of the variation. This was done by the variation_name until now.
variation_name is now used to display a translated string to the user.

During creation of the unit tree a new attribute base_ids is stored to
hold a list of the [base_unit]s.
2013-09-26 20:41:32 +02:00
fendrin
3c636c3163 Show the unit profile based on the variation_id.
The old implementation took the variation_name which is now used to show
the user a translated text.
2013-09-26 20:41:32 +02:00
Ignacio R. Morelle
bd2062c7d1 CodeBlocks project update 2013-09-26 15:27:41 -03:00
mattsc
6f20df53ae Update Xcode projectfile 2013-09-26 07:17:45 -07:00
flix
b08afe2f1a Change behavior of aspect recruitment_diversity. 2013-09-26 16:04:40 +02:00
mattsc
7ad252e814 The South Guard: fix missing ellipse issue for Sir Gerrick in 2 scenarios
The new ellipse system automatically appends -leader to the ellipse
file name, which does not work with the hero ellipse (those files don't
exist).
2013-09-26 06:59:39 -07:00
Ignacio R. Morelle
5d401b3b27 Update changelogs 2013-09-26 05:57:33 -03:00
Ignacio R. Morelle
1c414a30d6 gui2/tgame_paths: New dialog for displaying game paths in Preferences
The button to invoke this dialog is currently in Preferences -> General.
This will change as soon as I think of a better place/someone else
suggests a better place for the button.

The goal is to allow users to quickly inspect the various paths used by
the game to locate resources and configuration, for debugging or content
creation purposes. The dialog provides options to copy directory paths
to the system clipboard and browse them using the platform's file
manager software, when available.
2013-09-26 02:15:42 -03:00
Ignacio R. Morelle
78db17b896 Add functionality to launch the platform's file manager for a path
This supports X11 platforms, Windows, and OS X. The code was
developed and tested on Debian GNU/Linux, Windows XP, and Windows 7.

The X11 and OS X versions of the function are identical and use an
exec/fork/wait pipeline with the only platform-dependant variable
being the external launcher binary (xdg-open on X11, open on OS X). I
opted for this somewhat ugly approach instead of system() because of
the many dangers resulting from allowing the system shell to
reinterpret the command line at whim.

The Win32 version uses ShellExecute() to launch the default
application associated with the Folder object type, in case Windows
Explorer is not the default handler for whatever reason.

The OS X code path was preliminary tested by mattsc and that's really
all I know about it. More testing on that platform would be very,
*very* welcome, although it is expected to behave pretty much the
same as Linux/X11
2013-09-26 02:01:12 -03:00
Ignacio R. Morelle
ea4788e0cf gui2/tbutton: Add 25x25 variants for browse/go and copy-to-clipboard actions 2013-09-26 01:34:13 -03:00
Ignacio R. Morelle
830867f51f Add placeholder icons of my own for a generic copy-to-clipboard action
These are intended to be used with 25x25 buttons.
2013-09-26 01:34:13 -03:00
flix
d3e24eef3a Change behavior of recruitment_save_gold. 2013-09-26 03:04:15 +02:00
Andrius Silinskas
213677b710 Updated RELEASE_NOTES. 2013-09-25 21:44:03 +01:00
mattsc
4b3be3246b Dead Water::The Flaming Sword: fix missing ellipse issue for Caladon
With the new ellipse system, this is needed for units that were heroes
and become side leaders.
2013-09-25 09:23:10 -07:00
flix
e07dce8477 Replace recruitment CA of Hostile_Mountains in LoW 2013-09-25 18:09:31 +02:00
flix
9684ff377b Update players_changelog. 2013-09-25 16:18:45 +02:00
flix
db51c3fbbe Do minor changes to recruitment CA. 2013-09-25 15:42:26 +02:00
mattsc
50bb487e31 Update Xcode project file 2013-09-25 06:35:12 -07:00
flix
545c9b2057 Hang in new recruitment CA.
- Alter macro {AI_CA_RECRUITMENT} to point to the new CA
- Create a new AI cfg file for a stronger AI
- Create a new AI cfg (dev) file for choosing the old recruitment CA in debug mode.
- Alter macro {AI_NO_RECRUITMENT}
2013-09-25 15:32:20 +02:00
anonymissimus
d03195686c cb project update 2013-09-25 12:51:15 +02:00
anonymissimus
fb51fe6b8f vc project update 2013-09-25 12:51:07 +02:00
flix
301e0d5d43 Fix a bug. 2013-09-24 02:37:20 +02:00
flix
dc72d7b67e Add new recruitment CA.
The Candidate Action is not 'hung in' yet.
2013-09-23 17:50:09 +02:00
flix
4959db0952 Add aspects for new recruitment CA.
The aspects are:
- recruitment_diversity
- recruitment_instructions
- recruitment_more
- recruitment_randomness
- recruitment_save_gold

All aspects will only work with the new recruitment CA (not committed yet).
See http://wiki.wesnoth.org/AI_Recruitment
2013-09-23 17:09:26 +02:00
flix
fb4361d666 Prepare attack.*pp for new recruitment CA.
This includes:
- A new constructor for class battle_context_unit_stats to make simulations work with unit_types,
- Making function combat_modifier() a bit more generic (to specify a custom lawful-bonus),
- Changing method battle_context::better_combat() to be a static method (It doesn't use class-members).
- Adding method unit_type::resistance_against() so a unit_type can evaluate WML-resistance-abilities.
2013-09-23 16:35:07 +02:00
JaMiT
50f97f0534 Fixing compilation issues.
Apparently iterator_extend_base caused more issues than it solved,
so it is gone now.

Also, access to the underlying iterator has been made less roundabout.
2013-09-22 16:34:08 -05:00
Ignacio R. Morelle
1ad6d1cc96 Use std::wstring::c_str() to get null-terminated strings, not data()
The basic_string::data() method does not guarantee the result to be
null-terminated, and passing a non-null-terminated string where a
null-terminated string is expected (i.e. every Win32 API call here)
leads to all kinds of misfortune.
2013-09-22 14:35:23 -03:00
Ignacio R. Morelle
a1d818ecaa Fix instances of 'handle' typoed as 'hanlde' 2013-09-22 14:30:23 -03:00
JaMiT
b9821441a9 No need to search through a container twice. 2013-09-22 12:27:19 -05:00
JaMiT
2401cdba8f const-qualify elements of play_controller::wml_commands_. 2013-09-22 12:10:37 -05:00
JaMiT
22796e208a Have wmi_container::get_item() return an item instead of a pointer.
Now wmi_container is a black box, with no external code concerned
with how it stores its items.
2013-09-22 12:10:36 -05:00
JaMiT
7aeacc554c Remove wmi_container::get_menu_items().
No one needs to get at the underlying implementation anymore.
2013-09-22 12:10:36 -05:00
JaMiT
72f6b5ead6 Add find() and erase() to wmi_container. 2013-09-22 12:10:36 -05:00
JaMiT
dcae119497 Make use of wmi_container's new features. 2013-09-22 12:10:36 -05:00
JaMiT
501581ea74 Turn wmi_container into a container.
This defines some types and functions that come from the STL
definition of a container. It's not complete, though, as I do
not see a reason to define size(), max_size(), or swap() at the
moment. (They would be easy to add, if the need ever arises.)

The new #include file might be useful elsewhere as well. I'll look
into that.
2013-09-22 12:10:36 -05:00
JaMiT
0774ca49f4 Using a typedef to make some code easier to read. 2013-09-22 12:10:35 -05:00
Ignacio R. Morelle
a93a372448 addon/client: Move connection step to a separate member method
This fixes memory leaks or crash-to-desktop (the latter reliably
triggered by Boost 1.54) situations resulting from failed connections to
an add-ons server throwing an exception from the addons_client
constructor, not giving the destructor a chance to run.

Thanks to loonycyborg for helping me diagnose the issue.
2013-09-21 22:08:42 -03:00