Esempio n. 1
0
 public void AddTurn(Api_TurnOperator instance)
 {
     if (instance != null)
     {
         Total_turn++;
         ReqQuestReset = true;
     }
 }
Esempio n. 2
0
 public void AddTurn(Api_TurnOperator instance)
 {
     if (instance == null)
     {
         return;
     }
     this.Total_turn++;
     this.ReqQuestReset = true;
 }
Esempio n. 3
0
 private TurnWorkResult _PhaseEnd(bool force, List <TurnState> now_states)
 {
     if (now_states.Contains(base.TurnState))
     {
         TurnWorkResult turnWorkResult = new Api_TurnOperator().ExecTurnStateChange(this, force, ManagerBase._turn_state);
         if (turnWorkResult != null)
         {
             ManagerBase._turn_state = turnWorkResult.ChangeState;
             return(turnWorkResult);
         }
         return(null);
     }
     return(null);
 }
Esempio n. 4
0
        public bool StartRebellion(Api_TurnOperator instance)
        {
            if (instance == null)
            {
                return(false);
            }
            if (this.State != RebellionState.Alert)
            {
                return(false);
            }
            double randDouble = Utils.GetRandDouble(0.0, 100.0, 1.0, 1);

            if (randDouble <= 65.0)
            {
                this.State = RebellionState.Invation;
                return(true);
            }
            return(false);
        }