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); }
public Move(PassiveAct passive, ActiveAct active) { this.passive = passive; this.active = active; }