URL:
<http://gna.org/patch/?812>
Summary: First implementation of female MP leaders
Project: Battle for Wesnoth
Submitted by: shadowmaster
Submitted on: Wednesday 09/26/07 at 18:17
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch implements my first attempt at making possible for players to get,
in some way, *female* leaders on Multiplayer games. It work by adding a
"female leaders" flag to advanced preferences, which is read by the MP
leader's SingleUnitWML generator code. However, I predict that this has
certain implications:
* Requires testing in real MP games
* The player's leader's gender attribute is set to female when the advanced
preference option is enabled, no matter if the unit supports the female
gender or not. So it would cause the following (+):
+ The unit's female name (i.e. "female^Drake Burner") is not implemented in
the mainline WML, and probably won't, so this might look inconsistent in game,
specially when the female english name variant must be different from the male
variant (i.e. "Sorcerer" versus "Sorceress"), or when using certain
Translations (I being aware of Spanish).
+ Possibly more side-effects I just forgot.
* Again requires testing in a real networked game, to check whether it
affects other people when all players have the female flag set to different
states (i.e. player 1 is female but player 2 is male, and so on).
I know this is an awkward way to implement this, but I simply could not
figure out the MP GUI code in finite time.
Affected files:
WML code at /data/_main.cfg, because of an advances preferences option
addition.
C++ code at src/multiplayer_create.cpp (new code in existent function), at
src/game_preferences.hpp (new function prototype in namespace preferences)
and src/game_preferences.cpp (new function definition in namespace
preferences). No makefile changes required.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wednesday 09/26/07 at 18:17 Name: female-MP-option.patch Size: 2kB
By: shadowmaster
<http://gna.org/patch/download.php?file_id=2988>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?812>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs