Beispiel #1
0
 private void HandleEndTurn(GameEvent_EndTurn ev)
 {
     if (ev.CommandEntity == this.Parent)
     {
         this.LastActivationTick = ev.TurnTick;
     }
 }
Beispiel #2
0
        private void HandleEndTurn(GameEvent_EndTurn ev)
        {
            this._HandleEndTurn(ev);

            if (this.isTimed)
            {
                this.duration--;
            }
        }
Beispiel #3
0
 private void HandleEndTurn(GameEvent_EndTurn ev)
 {
     for (int i = this.activeEffects.Count - 1; i >= 0; i--)
     {
         if (this.activeEffects[i].Expired)
         {
             this.activeEffects.RemoveAt(i);
         }
     }
     foreach (var effect in this.applyQueue)
     {
         this.activeEffects.Add(effect);
     }
     this.applyQueue.Clear();
 }
Beispiel #4
0
        private void HandleEndTurn(GameEvent_EndTurn ev)
        {
            // Portals can't teleport themselves ever
            if (ev.CommandEntity == this.Parent)
            {
                return;
            }

            var portalPos  = this.Parent.TryGetPosition();
            var commandPos = ev.CommandEntity.TryGetPosition();

            if (portalPos != null && commandPos != null &&
                portalPos.X == commandPos.X && portalPos.Y == commandPos.Y && portalPos.Z == commandPos.Z)
            {
                throw new NotImplementedException();
            }
        }
 protected override void _HandleEndTurn(GameEvent_EndTurn ev)
 {
 }
Beispiel #6
0
 protected override void _HandleEndTurn(GameEvent_EndTurn ev)
 {
     this.BlocksRemaining = this.BlocksMax;
 }
Beispiel #7
0
 abstract protected void _HandleEndTurn(GameEvent_EndTurn ev);
Beispiel #8
0
 private void HandleEndTurn(GameEvent_EndTurn ev)
 {
     this.CurrentFreeMoves = this.MaxFreeMoves;
 }