Set up #COMBOS with proper Judgment values.

This will be looked at more on wake up.
This commit is contained in:
Jason Felds
2011-07-09 02:49:40 -04:00
parent 9d413ce75a
commit 86ff676079
+12 -2
View File
@@ -13,7 +13,8 @@ class XNode;
struct TapNoteResult struct TapNoteResult
{ {
/** @brief Set up the TapNoteResult with default values. */ /** @brief Set up the TapNoteResult with default values. */
TapNoteResult() : tns(TNS_None), fTapNoteOffset(0.f), bHidden(false) { } TapNoteResult() : tns(TNS_None), fTapNoteOffset(0.f),
bHidden(false), numJudgments(1) { }
/** @brief The TapNoteScore that was achieved by the player. */ /** @brief The TapNoteScore that was achieved by the player. */
TapNoteScore tns; TapNoteScore tns;
@@ -28,6 +29,12 @@ struct TapNoteResult
/** @brief If the whole row has been judged, all taps on the row will be set to hidden. */ /** @brief If the whole row has been judged, all taps on the row will be set to hidden. */
bool bHidden; bool bHidden;
/**
* @brief How many judgments is this really worth?
*
* This is based off of the Combo Segment value. */
int numJudgments;
// XML // XML
XNode* CreateNode() const; XNode* CreateNode() const;
void LoadFromNode( const XNode* pNode ); void LoadFromNode( const XNode* pNode );
@@ -35,7 +42,10 @@ struct TapNoteResult
/** @brief The result of holding (or letting go of) a hold note. */ /** @brief The result of holding (or letting go of) a hold note. */
struct HoldNoteResult struct HoldNoteResult
{ {
HoldNoteResult() : hns(HNS_None), fLife(1.f), fOverlappedTime(0), iLastHeldRow(0), iCheckpointsHit(0), iCheckpointsMissed(0), bHeld(false), bActive(false) { } HoldNoteResult(): hns(HNS_None), fLife(1.f),
fOverlappedTime(0), iLastHeldRow(0),
iCheckpointsHit(0), iCheckpointsMissed(0),
bHeld(false), bActive(false) { }
float GetLastHeldBeat() const; float GetLastHeldBeat() const;
HoldNoteScore hns; HoldNoteScore hns;