예제 #1
0
 public ConditionalItem()
 {
     cond1Val = 0;
     cond2Val = 0;
     cond1Ind = ConstFile.ConditionOptions.ENEMY_DISTANCE;
     greater  = true;
     cond2Ind = ConstFile.ConditionOptions.VALUE;
     action   = ConstFile.Actions.REST;
     note     = ConstFile.Notes.QUARTER;
 }
예제 #2
0
    string ConditionString(ConstFile.ConditionOptions opt, bool one)
    {
        string retString = string.Empty;

        switch (opt)
        {
        case ConstFile.ConditionOptions.ENEMY_DISTANCE:
            retString = "Enemy Distance";
            break;

        case ConstFile.ConditionOptions.ENERGY:
            retString = "Energy";
            break;

        case ConstFile.ConditionOptions.VALUE:
            retString = one ? cond1Val.ToString() : cond2Val.ToString();
            break;
        }

        return(retString);
    }