public void AddTurn(Api_TurnOperator instance) { if (instance != null) { Total_turn++; ReqQuestReset = true; } }
public void AddTurn(Api_TurnOperator instance) { if (instance == null) { return; } this.Total_turn++; this.ReqQuestReset = true; }
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); }
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); }