private void HandleEndTurn(GameEvent_EndTurn ev) { if (ev.CommandEntity == this.Parent) { this.LastActivationTick = ev.TurnTick; } }
private void HandleEndTurn(GameEvent_EndTurn ev) { this._HandleEndTurn(ev); if (this.isTimed) { this.duration--; } }
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(); }
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) { }
protected override void _HandleEndTurn(GameEvent_EndTurn ev) { this.BlocksRemaining = this.BlocksMax; }
abstract protected void _HandleEndTurn(GameEvent_EndTurn ev);
private void HandleEndTurn(GameEvent_EndTurn ev) { this.CurrentFreeMoves = this.MaxFreeMoves; }