Esempio n. 1
0
    string ActionString(ConstFile.Actions act)
    {
        string retString = string.Empty;

        switch (act)
        {
        case ConstFile.Actions.ATTACK:
            retString = "attack";
            break;

        case ConstFile.Actions.MOVE_BACK:
            retString = "move back";
            break;

        case ConstFile.Actions.MOVE_ENEMY:
            retString = "move towards enemy";
            break;

        case ConstFile.Actions.MOVE_FORWARD:
            retString = "move forward";
            break;

        case ConstFile.Actions.REST:
            retString = "rest";
            break;
        }

        return(retString);
    }
Esempio n. 2
0
 public PlayInstructs(Actions newAct, ConstFile.Notes newNote, float yPos, Puppet u)
 {
     action = newAct;
     note   = newNote;
     y      = yPos;
     unit   = u;
 }
Esempio n. 3
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;
 }