Ejemplo n.º 1
0
    private void updateScore(PhraseValue aPhraseValue)
    {
        int scoreChange = hypeIncrement;

        switch (aPhraseValue)
        {
        case PhraseValue.BAD:
            scoreChange *= hypeBadModifier;
            break;

        case PhraseValue.OPENER:
            // NOTHING HAPPENS
            break;

        case PhraseValue.CHOKE:
            scoreChange *= hypeChokeModifier;
            break;

        default:
            if (aPhraseValue == opponentWeaknesses[opponentIndex])
            {
                scoreChange *= hypeGreatModifier;
            }
            else
            {
                scoreChange *= hypeGoodModifier;
            }
            break;
        }

        currentHype += scoreChange;
        updateHypeMeter();
    }
Ejemplo n.º 2
0
 public void ChoiceSelected(PhraseValue aPhraseValue)
 {
     if (activeKeyIndex < m_PhraseKeys.Count)
     {
         updateScore(aPhraseValue);
         activeKeyIndex++;
         if (activeKeyIndex < m_PhraseKeys.Count)
         {
             updateDisplayText();
             //displayController.ResetTimer();
         }
         else
         {
             displayController.StopTimer();
             // battle over
         }
     }
 }
Ejemplo n.º 3
0
 public Phrase(string aText, PhraseValue aValue)
 {
     text  = aText;
     value = aValue;
 }