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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user