Пример #1
0
 public void SubPoint(IRebellionPointOperator instance, int subNum)
 {
     if (instance != null && subNum >= 0 && State != RebellionState.Invation)
     {
         Point -= subNum;
         if (Point < 0)
         {
             Point = 0;
         }
         ChangeState();
     }
 }
Пример #2
0
 public void AddPoint(IRebellionPointOperator instance, int addNum)
 {
     if (instance != null && addNum >= 0 && State != RebellionState.Invation)
     {
         Point += addNum;
         if (Point >= 200)
         {
             Point = 200;
         }
         ChangeState();
     }
 }
Пример #3
0
 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);
 }
Пример #4
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();
 }
Пример #5
0
 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();
 }