Exemplo n.º 1
0
        public string createState(FSM fsm, string father, string next)
        {
            fsm_ = fsm;
            prefix_ = father;
            fsm_.addState (prefix_ + ".show", showState(), father);
            fsm_.addState (prefix_ + ".input", inputState(), father);
            fsm_.addState (prefix_ + ".over", overState (next), father);

            return father + ".show";
        }
Exemplo n.º 2
0
        public string createState(FSM fsm, string father, string next)
        {
            prefix_ = father;
            fsm_ = fsm;

            fsm.addState (prefix_+".input", nomalState (), father);
            fsm.addState (prefix_+".down", downState (), father);
            fsm.addState (prefix_+".up", upState (), father);
            fsm.addState (prefix_+".next", nextState (next), father);
            return prefix_+".input";
        }
Exemplo n.º 3
0
 public string createState(FSM fsm, string father, string next)
 {
     fsm_ = fsm;
     prefix_ = father;
     fsm_.addState (prefix_ + ".game", new State(), father);
     fsm_.addState (prefix_ + ".load", loadState (), father);
     fsm_.addState (prefix_ + ".play", playState (), father);
     fsm_.addState (prefix_ + ".input", inputState (), prefix_ + ".play");
     fsm_.addState (prefix_ + ".die", dieState (), father);
     fsm_.addState (prefix_ + ".unload", unloadState (next), father);
     return father + ".load";
 }