Example #1
0
 public override bool ForwardAction(TimeMachine timeMachine, GameState.GameState state)
 {
     if (!_mine.GetComponent <DrillerCarrier>().GetOwner().IsEliminated() && state.GetOutposts().Contains(_mine) && !_mine.GetComponent <DrillerCarrier>().IsDestroyed())
     {
         _mine.GetComponent <DrillerCarrier>().GetOwner().AlterNeptunium(1);
         this._nextProduction = new NeptuniumProductionEvent(_mine, GetOccursAt().Advance(Mine.TICKS_PER_PRODUCTION_PER_MINE / state.GetPlayerOutposts(_mine.GetComponent <DrillerCarrier>().GetOwner()).Count));
         timeMachine.AddEvent(this._nextProduction);
         EventSuccess = true;
     }
     else
     {
         EventSuccess = false;
     }
     return(EventSuccess);
 }
Example #2
0
 public NeptuniumProductionEvent(Mine mine, GameTick occursAt) : base(occursAt, Priority.LowPriorty)
 {
     this._mine           = mine;
     this._nextProduction = null;
 }