public void SubPoint(IRebellionPointOperator instance, int subNum) { if (instance != null && subNum >= 0 && State != RebellionState.Invation) { Point -= subNum; if (Point < 0) { Point = 0; } ChangeState(); } }
public void AddPoint(IRebellionPointOperator instance, int addNum) { if (instance != null && addNum >= 0 && State != RebellionState.Invation) { Point += addNum; if (Point >= 200) { Point = 200; } ChangeState(); } }
public int EndInvation(IRebellionPointOperator instance) { if (instance == null) { return(-1); } if (this.State != RebellionState.Invation) { return(-2); } this.Point = 0; this.State = RebellionState.Safety; return(0); }
public void AddPoint(IRebellionPointOperator instance, int addNum) { if (instance == null || addNum < 0) { return; } if (this.State == RebellionState.Invation) { return; } this.Point += addNum; if (this.Point >= 200) { this.Point = 200; } this.ChangeState(); }
public void SubPoint(IRebellionPointOperator instance, int subNum) { if (instance == null || subNum < 0) { return; } if (this.State == RebellionState.Invation) { return; } this.Point -= subNum; if (this.Point < 0) { this.Point = 0; } this.ChangeState(); }