aboutsummaryrefslogtreecommitdiff
path: root/tuning/tunable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuning/tunable.cpp')
-rw-r--r--tuning/tunable.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/tuning/tunable.cpp b/tuning/tunable.cpp
index a561ad9..41f9eae 100644
--- a/tuning/tunable.cpp
+++ b/tuning/tunable.cpp
@@ -28,9 +28,21 @@
#include <string.h>
-tunable::tunable(const char *str, bool _value, double _score)
+tunable::tunable(const char *str, double _score, const char *good, const char *bad, const char *neutral)
{
- value = _value;
score = _score;
strcpy(desc, str);
+ strcpy(good_string, good);
+ strcpy(bad_string, bad);
+ strcpy(neutral_string, neutral);
}
+
+
+tunable::tunable(void)
+{
+ score = 0;
+ desc[0] = 0;
+ strcpy(good_string, "Good");
+ strcpy(bad_string, "Bad");
+ strcpy(neutral_string, "Unknown");
+} \ No newline at end of file