Mark de Wever
1b0707518b
Fix compilation of the unit tests.
...
Broken due to 2013-01-16T13:29:56Z!jt_coding@verizon.net.
2013-01-17 18:49:30 +00:00
Lari Nieminen
68cd31dc14
Added rhyging5's flames animation frames, provided by artisticdude.
...
Doesn't include any terrain or macro definitions, only the images.
2013-01-17 09:36:03 +00:00
Ignacio R. Morelle
5f0ce8d010
Make wmllint recognize victory_string, defeat_string,
...
...gold_carryover_string, and notes_string (all from the [objectives]
tag) as attributes that need to be made translatable
2013-01-17 05:43:48 +00:00
Matthias Schoeck
caf1ba4343
Update changelog with MP command-line changes
2013-01-17 04:55:42 +00:00
Matthias Schoeck
eb49509f9a
Add --ignore-map-settings multiplayer commandline option
2013-01-17 04:42:17 +00:00
Simon Forsyth
2290e3d6b2
Use new log domain for ai test scripts to determine faction.
2013-01-17 04:13:49 +00:00
J. Tyne
83d2f8d862
Improve the laziness of the lazy building of types.
2013-01-17 03:02:00 +00:00
Matthias Schoeck
183c92b61f
Remove the old and now unused commandline MP game function:
...
play_multiplayer_mode()
2013-01-17 00:34:19 +00:00
Matthias Schoeck
2c5b1fb336
Change an ai/testing log output from 'FACTION' to 'TEAM'.
2013-01-17 00:10:23 +00:00
Matthias Schoeck
57652a546d
Add faction name to log output for MP games
2013-01-17 00:03:35 +00:00
Fabian Müller
7397145f29
Made the movement cost tooltip title string translatable.
2013-01-16 23:43:39 +00:00
Matthias Schoeck
07afd27fbc
Make side leader names consistent with lobby MP conventions...
...
...for AI controlled sides in commandline mode. Also ensure that the
RCA AI is selected as default AI.
2013-01-16 23:25:05 +00:00
Fabian Müller
eecf2d2a28
Added color coding for the tod tooltip.
2013-01-16 21:35:15 +00:00
J. Tyne
c632e277d6
No need to set these fields twice in the constructor.
...
(I checked -- nothing changes them after the initialization list.)
2013-01-16 21:05:01 +00:00
Matthias Schoeck
1919dd5e7b
The MP lobby code specifically sets share_view=yes...
...
...if it is not specified for a side in the scenario code. Do the
same for commandline MP games.
2013-01-16 20:57:47 +00:00
Simon Forsyth
9c9e98e9c9
Add even more warnings when building with Xcode
2013-01-16 19:08:17 +00:00
J. Tyne
b37bff4925
Eliminate a string variable through inlining.
2013-01-16 18:15:48 +00:00
Simon Forsyth
2a5b2a3669
Add more warning flags when compiling with Xcode
2013-01-16 18:11:47 +00:00
J. Tyne
c751d89508
Fix comparisons between signed and unsigned types.
2013-01-16 18:04:56 +00:00
Matthias Schoeck
0a0e7925c2
Fix a function declaration
2013-01-16 17:58:56 +00:00
Matthias Schoeck
32e8e0dbfe
Set up multiplayer games started from the commandline...
...
...equivalently to lobby games.
This means that parameters now use the correct default values,
scenarios using random maps work and side leaders always have unique
IDs. Scenario and side parameters are defined as follows, in order of
increasing priority:
Wesnoth defaults --> map settings --> commandline-specified values
All modifications are in a code path separate from lobby games (as it
was before), so lobby games are not affected.
This fixes bugs #19853 , #19883 , #19895 and #20009 .
2013-01-16 17:13:58 +00:00
Fabian Müller
df24cf3360
Tooltip for the moves now displays the movement costs in the sidebar.
2013-01-16 16:20:52 +00:00
J. Tyne
177605fbaf
Introduce a typedef to make some of the code more readable.
2013-01-16 14:29:31 +00:00
J. Tyne
2da6f3cd3b
Change the unit constructor based on a unit_type to take a reference...
...
...instead of a pointer that was assumed to be (and in fact always
was) non-NULL.
2013-01-16 13:29:56 +00:00
J. Tyne
8c83185317
Change unit::advance_to() so that it takes a unit_type reference...
...
...instead of a pointer that was assumed (in many places) to be
non-NULL.
2013-01-16 12:53:45 +00:00
J. Tyne
b65d5603ee
Change unit::type() to return a reference instead of a never-NULL pointer.
2013-01-16 12:07:23 +00:00
J. Tyne
d09401df2c
Check for unit types found before creating units based on them.
2013-01-16 03:19:31 +00:00
J. Tyne
4bb579c875
Some optimizations made possible by 2013-01-16T00:41:43Z!jt_coding@verizon.net (unit::type() is never NULL).
2013-01-16 01:18:49 +00:00
J. Tyne
4de746be72
Have unit store a pointer to unit_type instead of a unit_type ID string.
...
In addition to speeding access to the unit_type (no need to search),
this makes it easier to see that a unit always has a valid unit_type
(an exception is thrown otherwise).
2013-01-16 00:41:43 +00:00
Fabian Müller
991a3a0878
Put a procedure from unit_helper in use to avoid duplicate code.
2013-01-15 22:24:16 +00:00
Fabian Müller
1fb1590df4
Color coded the hp/resistance tooltip of the sidebar unit display.
2013-01-15 15:48:20 +00:00
Fabian Müller
b6ef09062d
Add precudure for calculating the font color of a resistance value.
2013-01-15 15:35:55 +00:00
J. Tyne
398bd4d432
Correct a comment (copy-and-paste error).
2013-01-14 23:26:22 +00:00
J. Tyne
40f0762454
Don't specify "const" when returning by value.
...
(We don't care if the caller modifies it.)
2013-01-14 23:25:35 +00:00
J. Tyne
0a540d6e4a
Remove a MSVC warning suppression that no longer does anything...
...
...(no code between starting and stopping the suppression).
2013-01-14 19:29:04 +00:00
J. Tyne
d2602a3679
Replace some occurrences of std::find and std::search...
...
...with std::string::find. Just to make the code easier to read.
2013-01-14 19:03:59 +00:00
J. Tyne
7c67404a10
Make some variables names more consistent...
...
...by using the name "type" only when dealing with an actual unit_type
object.
2013-01-14 17:23:55 +00:00
J. Tyne
21eaf5e35f
No need to convert a unit type to its ID...
...
...so that we can search for a unit type with that ID -- just use the
unit type we already have.
2013-01-14 14:13:10 +00:00
J. Tyne
4fc92ade45
Remove an unused variable.
2013-01-14 02:03:55 +00:00
Charles Dang
3c1b40e1b2
Added myself to credits
2013-01-14 01:49:15 +00:00
J. Tyne
e7d28c0211
Punctuate a comment.
2013-01-13 21:40:19 +00:00
J. Tyne
f703943dec
Convert a simulated hash map to boost::unordered_map.
...
This is a @todo that was pending BfW requiring Boost 1.35 or
preferably 1.36.
2013-01-13 21:39:25 +00:00
Simon Forsyth
dd7045ddb5
Allow SoF to continue after gathering materials (bug reported in forums)
2013-01-13 21:28:12 +00:00
Fabian Müller
44a453da3e
Report the unit's vision value in the sidebar.
2013-01-13 20:11:15 +00:00
Fabian Müller
06269beeaf
Support for vision in [unit], previously it worked only in [unit_type].
2013-01-13 20:00:58 +00:00
Fabian Müller
ed41ff9803
Report for the unit's vision value.
2013-01-13 19:41:10 +00:00
Simon Forsyth
3afbd449ba
Do not count regenerating units without moves...
...
...as having moves in healer support micro AI
2013-01-13 03:54:17 +00:00
Simon Forsyth
1ea4ff0f26
Add healer support micro AI to experimental multiplayer AI
2013-01-12 23:31:59 +00:00
Boldizsár Lipka
5cca2a1988
Don't show 'Toggle planning mode' option for observers
2013-01-12 23:08:17 +00:00
Simon Forsyth
d09dc44505
Promote lurker and Mefisto in Art contributions section...
...
...in recognition of the large amount of terrain artwork they have
done recently
2013-01-12 22:30:24 +00:00