Mercurial > hg > tweakathon2ios
comparison TrainingScoreManager.h @ 49:a62e033117fa
sequence controller now generated new. but doesn't fix the bug. bad access cropping up...
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Mon, 12 Jan 2015 18:40:00 +0000 |
parents | 4ad0d218f890 |
children |
comparison
equal
deleted
inserted
replaced
48:2396eb9dcddd | 49:a62e033117fa |
---|---|
32 class TrainingScoreManager{ | 32 class TrainingScoreManager{ |
33 | 33 |
34 // equiv of score bit of testController | 34 // equiv of score bit of testController |
35 public: | 35 public: |
36 TrainingScoreManager(){ | 36 TrainingScoreManager(){ |
37 totalScored = 0; | |
38 }; | |
39 void reset(){ | |
37 totalScored = 0; | 40 totalScored = 0; |
38 }; | 41 }; |
39 int getBandForDistance(float dist) const{ | 42 int getBandForDistance(float dist) const{ |
40 int band = -1; | 43 int band = -1; |
41 auto dimComp = sqrt(TOTAL_NUM_PARAMS); | 44 auto dimComp = sqrt(TOTAL_NUM_PARAMS); |