started removing KLib related code:

- assertions
- distributions
new helper methods
worked on stairs
worked on grid-walkers
worked on navigation
This commit is contained in:
2016-01-27 20:03:58 +01:00
parent e6329e1db4
commit 0e05f4bef8
26 changed files with 408 additions and 109 deletions

View File

@@ -4,7 +4,7 @@
#include <vector>
#include <random>
#include <KLib/Assertions.h>
#include "../Assertions.h"
/**
* add elements of a certain probability
@@ -72,7 +72,7 @@ public:
const auto tmp = std::lower_bound(elements.begin(), elements.end(), rndVal);
// sanity check
_assertFalse(tmp == elements.end(), "draw() did not find a valid element");
Assert::isFalse(tmp == elements.end(), "draw() did not find a valid element");
// done
return (*tmp).element;