Ejemplo n.º 1
0
        public override StateGraph CreateGraph()
        {
            StateGraph          stateGraph          = new StateGraph();
            LordToil_StealCover lordToil_StealCover = new LordToil_StealCover();

            lordToil_StealCover.avoidGridMode = AvoidGridMode.Smart;
            stateGraph.AddToil(lordToil_StealCover);
            LordToil_StealCover lordToil_StealCover2 = new LordToil_StealCover();

            lordToil_StealCover2.cover         = false;
            lordToil_StealCover2.avoidGridMode = AvoidGridMode.Smart;
            stateGraph.AddToil(lordToil_StealCover2);
            Transition transition = new Transition(lordToil_StealCover, lordToil_StealCover2, false, true);

            transition.AddTrigger(new Trigger_TicksPassedAndNoRecentHarm(1200));
            stateGraph.AddTransition(transition, false);
            return(stateGraph);
        }
Ejemplo n.º 2
0
        public override StateGraph CreateGraph()
        {
            StateGraph          stateGraph          = new StateGraph();
            LordToil_StealCover lordToil_StealCover = new LordToil_StealCover
            {
                useAvoidGrid = true
            };

            stateGraph.AddToil(lordToil_StealCover);
            LordToil_StealCover lordToil_StealCover2 = new LordToil_StealCover
            {
                cover        = false,
                useAvoidGrid = true
            };

            stateGraph.AddToil(lordToil_StealCover2);
            Transition transition = new Transition(lordToil_StealCover, lordToil_StealCover2);

            transition.AddTrigger(new Trigger_TicksPassedAndNoRecentHarm(1200));
            stateGraph.AddTransition(transition);
            return(stateGraph);
        }