gfgtdf
1cc86a14af
simplify start_local_game_commandline
...
This makes start_local_game_commandline use the same functions that are
also used during normal gamestate inilisation in create_engine.
This specially fixes recuitlists in games stated via -m which was broken
since 09d40339168e322e4a1ab5dda3273db9ecfdb07b
2016-04-03 00:56:36 +02:00
Celtic Minstrel
b8441bba24
Update scons and CMake
2016-04-02 16:05:28 -04:00
Celtic Minstrel
ca512b20c2
Fix several more cases of missed BOOST_FOREACH and FOREACH
2016-04-02 16:01:34 -04:00
Celtic Minstrel
7c37ad57bd
Two new [message] features
...
- ~LEFT() does the opposite of ~RIGHT(), but takes higher priority;
use it to force an image to the left that's normally on the right
(eg female silver mage)
- image=~RIGHT() means "use normal portrait, but on the right"
2016-04-02 15:15:31 -04:00
mattsc
20b07c6379
Micro AIs: internal changes to AI and CA ID handling
...
This is needed to fix some corner cases of multiple Micro AI changes
during a scenario, such as for the bats in the Goto test scenario.
2016-04-02 07:54:57 -07:00
Charles Dang
9fc19a9fbd
Convert two remaining cases of BOOST_FOREACH to range-for
2016-04-03 01:07:52 +11:00
Celtic Minstrel
0688e6df8f
Formula engine: Expose WML unit/side variables
2016-04-02 09:39:09 -04:00
Celtic Minstrel
5c9923daba
Formula engine: Add pair() function
2016-04-02 09:39:07 -04:00
Celtic Minstrel
cc7c124744
Merge branch 'lua_formula_bridge'
...
Allows calling WFL code from Lua
2016-04-02 09:38:59 -04:00
Celtic Minstrel
b503b6cfe1
Lua formula bridge now recognizes location objects
2016-04-02 09:38:56 -04:00
Celtic Minstrel
5fdad345f2
Formula engine: Generalize system of defining and instantiating functions
2016-04-02 09:38:52 -04:00
Celtic Minstrel
5bb6c30b05
Lua API: Add wesnoth.compile_formula which returns a callable userdata
2016-04-02 09:38:49 -04:00
Celtic Minstrel
ac4479090f
Add a comparator function for lua_callable
2016-04-02 09:38:47 -04:00
Celtic Minstrel
38198e9151
Move config_callable to callable_objects.hpp and add a comparator function
2016-04-02 09:38:45 -04:00
Celtic Minstrel
4d1c9bdd43
Add wesnoth.eval_formula which compiles and evaluates a formula in the formula engine
2016-04-02 09:38:43 -04:00
Celtic Minstrel
bfc6744b03
Workaround for MSVC2013's buggy atomic
2016-04-02 09:38:38 -04:00
Celtic Minstrel
fe818f8005
Add Lua API function to set the current time of day
2016-04-02 09:38:34 -04:00
Celtic Minstrel
ca382018b7
BOOST_FOREACH -> range for
2016-04-02 09:38:29 -04:00
Celtic Minstrel
104ccf6e36
Remove obsolete class from FormulaAI
...
This class appears to stem from the days when FormulaAI was implemented as a separate AI algorithm,
rather than as an engine of the composite AI. Apart from one function which didn't access anything in
the class (and has been moved elsewhere), the class was entirely unused.
2016-04-02 09:38:22 -04:00
Nils Kneuper
adb0abfb6d
add boost-thread to cmake recipe, part2
2016-04-02 10:24:17 +02:00
Nils Kneuper
f758706ea2
fixed compiling with CMake in a hacky way
...
* Switched from C++98 to C++11 (as announced on the dev-ml)
* Added support for boost-thread
The current implementation is hacky and not clean. It at least builds on
my gentoo ~amd64 system.
2016-04-02 10:15:54 +02:00
Charles Dang
c5ac29d505
Revert use of std::to_string in config
...
to_string has problems with floating point types
2016-04-02 11:05:59 +11:00
gfgtdf
aaf9cb406f
fix a c++11 todo
2016-04-01 22:35:23 +02:00
gfgtdf
b847c18785
fix msvc compilation.
2016-04-01 22:35:23 +02:00
gfgtdf
90cd3bacc8
attempt to fix travis c++14 build
2016-04-01 22:29:00 +02:00
Celtic Minstrel
b7d6712184
tloadscreen: Disable escape/enter and avoid use of atomic iterator
2016-04-01 13:36:57 -04:00
gfgtdf
ae09f7975b
Add c++14 test to travis
2016-04-01 18:55:51 +02:00
loonycyborg
bb02ce7c72
scons: add option to enable using c++14 features
2016-04-01 19:46:02 +03:00
Celtic Minstrel
982394fe3a
Remove custom FOREACH macro in favour of range-for
2016-04-01 12:08:05 -04:00
Charles Dang
f497d4c919
tpreferences: fixed accelerated speed slider
...
Apparently, to_string has inconsistent behavior when operating on
floating point types, so revert to using lexical_cast.
2016-04-02 02:47:04 +11:00
Charles Dang
4645d654c3
CB: enable building wesnothd alone
2016-04-02 02:26:22 +11:00
gfgtdf
2cfffe8bb6
attempt to fix c++14 compilation.
2016-04-01 16:31:40 +02:00
gfgtdf
9d570b852c
fix c++14 compiler detection
2016-04-01 16:15:01 +02:00
gfgtdf
7e204d16e4
fix c++14 compiler detation
...
HAVE_CXX14 is most likeley meaningless on msvc, so we move the msvc out of HAVE_CXX14. Also fixes the indention of the other code.
2016-04-01 16:13:40 +02:00
Wedge009
59a8682b89
Trivial comment spelling correction (from PR #640 ).
2016-04-01 23:10:16 +11:00
Celtic Minstrel
cc115b9d0e
tloadscreen fixup for MSVC
2016-04-01 03:59:55 -04:00
Celtic Minstrel
390aa20516
Guards around C++14 code
2016-04-01 01:27:27 -04:00
Celtic Minstrel
1ff7b5fbcd
XCode: Set Mac App Store category
2016-04-01 00:43:35 -04:00
Celtic Minstrel
d958429e27
XCode: Update Wesnoth version
2016-04-01 00:43:34 -04:00
Celtic Minstrel
7c767e6402
tloadscreen: Use atomic access for current stage
2016-04-01 00:43:33 -04:00
Celtic Minstrel
8580245c29
Complete config.hpp compiler detection
2016-04-01 00:43:32 -04:00
mattsc
1cc3711996
Xcode project: ignore inconsistent-missing-override warning
2016-03-31 19:58:15 -07:00
Celtic Minstrel
e35e46ec2e
Enable commented C++11 xBRZ code
2016-03-31 21:40:14 -04:00
Celtic Minstrel
d9eab21bd0
Remove redundant gamestate::bind()
2016-03-31 21:40:11 -04:00
Celtic Minstrel
1368a05ee9
Correct indentation
2016-03-31 21:40:09 -04:00
Celtic Minstrel
a5cd2c7f4a
Restore loadscreen translatable stage messages
2016-03-31 21:40:08 -04:00
Celtic Minstrel
1c5f6024fd
Reduce needlessly large closures
2016-03-31 21:40:05 -04:00
Charles Dang
51957589ed
Removed some C++11 include guards I missed
2016-04-01 12:27:06 +11:00
gfgtdf
bc20a3d7d9
remove a c++11 #ifdef
2016-04-01 03:19:37 +02:00
gfgtdf
b6282d8662
use c++11 heterogeneous map lookups in config if possible.
...
this means that codes like cfg.child("abcd") or cfg["abcd"] won't create
a temporary std::string anymore. At least when cfg is const.
2016-04-01 03:17:40 +02:00