mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
Fixed the god-awful indentation
This commit is contained in:
@@ -17,41 +17,49 @@
|
||||
#include <vector>
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared { namespace Util {
|
||||
namespace Shared {
|
||||
namespace Util {
|
||||
|
||||
// =====================================================
|
||||
// class RandomGen
|
||||
// =====================================================
|
||||
// =====================================================
|
||||
// class RandomGen
|
||||
// =====================================================
|
||||
|
||||
class RandomGen {
|
||||
private:
|
||||
static const int m;
|
||||
static const int a;
|
||||
static const int b;
|
||||
class RandomGen {
|
||||
private:
|
||||
static const int m;
|
||||
static const int a;
|
||||
static const int b;
|
||||
|
||||
private:
|
||||
int lastNumber;
|
||||
std::vector<std::string> lastCaller;
|
||||
bool disableLastCallerTracking;
|
||||
private:
|
||||
int lastNumber;
|
||||
std::vector<std::string> lastCaller;
|
||||
bool disableLastCallerTracking;
|
||||
|
||||
int rand(std::string lastCaller);
|
||||
int rand(std::string lastCaller);
|
||||
|
||||
public:
|
||||
RandomGen();
|
||||
void init(int seed);
|
||||
public:
|
||||
RandomGen();
|
||||
void init(int seed);
|
||||
|
||||
int randRange(int min, int max,std::string lastCaller="");
|
||||
float randRange(float min, float max,std::string lastCaller="");
|
||||
int randRange(int min, int max, std::string lastCaller = "");
|
||||
float randRange(float min, float max, std::string lastCaller = "");
|
||||
|
||||
int getLastNumber() const { return lastNumber; }
|
||||
void setLastNumber(int value) { lastNumber = value; }
|
||||
int getLastNumber() const {
|
||||
return lastNumber;
|
||||
}
|
||||
void setLastNumber(int value) {
|
||||
lastNumber = value;
|
||||
}
|
||||
|
||||
std::string getLastCaller() const;
|
||||
void clearLastCaller();
|
||||
void addLastCaller(std::string text);
|
||||
void setDisableLastCallerTracking(bool value) { disableLastCallerTracking = value; }
|
||||
};
|
||||
std::string getLastCaller() const;
|
||||
void clearLastCaller();
|
||||
void addLastCaller(std::string text);
|
||||
void setDisableLastCallerTracking(bool value) {
|
||||
disableLastCallerTracking = value;
|
||||
}
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
}
|
||||
}//end namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user