1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00
vcmi/AI
Michał W. Urbańczyk 4576719abe Visual Studio 2013 Preview compile fixes:
* 0 is not convertible to std::function, nullptr should be used
* std::ref(rand) is not convertible to function<int()>, used lambdas (why we dont just pass "rand" ? )
* CFunctionList needs to be constructible from nullptr
* move constructor for CMapInfo (Visual cannot generate them :( )
* #ifdefed some stuff that is not needed anymore since cmath is updated with C99 stuff
* using std::make_unique instead of our vstd implementation

CSelector: 
* introduced a class in place of typedef
* Having an overloaded && || operators over sth that is convertible to bool… Wasn't a good idea after all. Purged the operators, replaced  with And/Or methods (chaining-style).
* constructor that is present only when constructing from class or function (SFINAE). std::function has an implicit converting constructor from T causing ambiguities (even if the overload would cause compile error in the body)
2013-07-02 12:08:30 +00:00
..
BattleAI Visual Studio 2013 Preview compile fixes: 2013-07-02 12:08:30 +00:00
EmptyAI More work on auto-fight. 2013-06-22 21:47:51 +00:00
FuzzyLite Visual Studio 2013 Preview compile fixes: 2013-07-02 12:08:30 +00:00
StupidAI second part of c++11 update. gcc 4.5 and VS 2010 are no longer supported 2013-06-29 13:05:48 +00:00
VCAI second part of c++11 update. gcc 4.5 and VS 2010 are no longer supported 2013-06-29 13:05:48 +00:00
CMakeLists.txt - added battleAI to CMake, compile fixes 2012-09-22 15:10:15 +00:00
GeniusAI.brain Various fixes. Temporarily replaced neural network's output with random number. 2009-08-21 18:18:52 +00:00