Esempio n. 1
0
        private string ToRequest(PassiveAct passive, ActiveAct active)
        {
            string act = "act=";

            switch (passive)
            {
            case PassiveAct.ON_LEFT:
                act += "onLeft";
                break;

            case PassiveAct.ON_RIGHT:
                act += "onRight";
                break;

            case PassiveAct.ROLL:
                act += "upSideDn";
                break;

            default:
                act += "noAct";
                break;
            }

            act += "%20";

            switch (active)
            {
            case ActiveAct.GO:
                act += "Go";
                break;

            case ActiveAct.SHOOT:
                act += "Shoot";
                break;

            case ActiveAct.TAKE:
                act += "Take";
                break;

            default:
                act += "noAct";
                break;
            }

            return(act);
        }
Esempio n. 2
0
 public Move(PassiveAct passive, ActiveAct active)
 {
     this.passive = passive;
     this.active  = active;
 }