cleanup
This commit is contained in:
+36
-9
@@ -112,14 +112,39 @@ void Steps::GetSMNoteData( CString ¬es_comp_out, CString &attacks_comp_out )
|
|||||||
|
|
||||||
float Steps::PredictMeter()
|
float Steps::PredictMeter()
|
||||||
{
|
{
|
||||||
//Define and Init Non-Radar Values
|
/* Tip: try this, instead:
|
||||||
float SV;
|
const float RadarFactors[NUM_RADAR_CATEGORIES] =
|
||||||
float ChaosSquare;
|
{
|
||||||
float pMeter;
|
10.1f, 5.27f,-0.905f, -1.10f, 2.86f,
|
||||||
SV = this->GetRadarValues()[RADAR_STREAM] * this->GetRadarValues()[RADAR_VOLTAGE];
|
0,0,0,0,0
|
||||||
ChaosSquare = this->GetRadarValues()[RADAR_CHAOS] * this->GetRadarValues()[RADAR_CHAOS];
|
};
|
||||||
|
for( int r = 0; r < NUM_RADAR_CATEGORIES; ++r )
|
||||||
|
pMeter += this->GetRadarValues()[r] * RadarFactors[r];
|
||||||
|
|
||||||
pMeter = BETA_ZERO;
|
const float DifficultyBias[NUM_DIFFICULTIES] =
|
||||||
|
{
|
||||||
|
-1, -0.877f, 0, 0.722f, 0.722f
|
||||||
|
};
|
||||||
|
pMeter += DifficultyBias[this->GetDifficulty()];
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Coefficients
|
||||||
|
const float BETA_ZERO = 0.775f;
|
||||||
|
const float STREAM = 10.1f;
|
||||||
|
const float VOLTAGE = 5.27f;
|
||||||
|
const float AIR = -0.905f;
|
||||||
|
const float FREEZE = -1.10f;
|
||||||
|
const float CHAOS = 2.86f;
|
||||||
|
const float HEAVY = 0.722f;
|
||||||
|
const float LIGHT = -0.877f;
|
||||||
|
const float SXV = -6.35f; // Square/Voltage Interaction Varible
|
||||||
|
const float CSQUARE = -2.58f;
|
||||||
|
|
||||||
|
// Init non-radar values
|
||||||
|
const float SV = this->GetRadarValues()[RADAR_STREAM] * this->GetRadarValues()[RADAR_VOLTAGE];
|
||||||
|
const float ChaosSquare = this->GetRadarValues()[RADAR_CHAOS] * this->GetRadarValues()[RADAR_CHAOS];
|
||||||
|
|
||||||
|
float pMeter = BETA_ZERO;
|
||||||
pMeter += STREAM * this->GetRadarValues()[RADAR_STREAM];
|
pMeter += STREAM * this->GetRadarValues()[RADAR_STREAM];
|
||||||
pMeter += VOLTAGE * this->GetRadarValues()[RADAR_VOLTAGE];
|
pMeter += VOLTAGE * this->GetRadarValues()[RADAR_VOLTAGE];
|
||||||
pMeter += AIR * this->GetRadarValues()[RADAR_AIR];
|
pMeter += AIR * this->GetRadarValues()[RADAR_AIR];
|
||||||
@@ -127,8 +152,10 @@ float Steps::PredictMeter()
|
|||||||
pMeter += CHAOS * this->GetRadarValues()[RADAR_CHAOS];
|
pMeter += CHAOS * this->GetRadarValues()[RADAR_CHAOS];
|
||||||
pMeter += SXV * SV;
|
pMeter += SXV * SV;
|
||||||
pMeter += CSQUARE * ChaosSquare;
|
pMeter += CSQUARE * ChaosSquare;
|
||||||
if (this->GetDifficulty() == DIFFICULTY_HARD) pMeter += HEAVY;
|
if( this->GetDifficulty() == DIFFICULTY_HARD )
|
||||||
if (this->GetDifficulty() == DIFFICULTY_EASY) pMeter += LIGHT;
|
pMeter += HEAVY;
|
||||||
|
if( this->GetDifficulty() == DIFFICULTY_EASY )
|
||||||
|
pMeter += LIGHT;
|
||||||
return pMeter;
|
return pMeter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,18 +18,6 @@
|
|||||||
#include "Grade.h"
|
#include "Grade.h"
|
||||||
class NoteData;
|
class NoteData;
|
||||||
|
|
||||||
//Model Coefficients
|
|
||||||
#define BETA_ZERO (0.775f)
|
|
||||||
#define STREAM (10.1f)
|
|
||||||
#define VOLTAGE (5.27f)
|
|
||||||
#define AIR (-0.905f)
|
|
||||||
#define FREEZE (-1.10f)
|
|
||||||
#define CHAOS (2.86f)
|
|
||||||
#define HEAVY (0.722f)
|
|
||||||
#define LIGHT (-0.877f)
|
|
||||||
#define SXV (-6.35f) // Square/Voltage Interaction Varible
|
|
||||||
#define CSQUARE (-2.58f)
|
|
||||||
|
|
||||||
class Steps
|
class Steps
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user