public static SpeedComponent Create(int baseSpeed) { var component = new SpeedComponent(); component.BaseSpeed = baseSpeed; return(component); }
public void EndTurn(SpeedComponent speedComponent, StatusEffectTrackerComponent statusEffectTrackerComponent) { int currentTick = this.NextTurnAtTick; if (statusEffectTrackerComponent != null) { statusEffectTrackerComponent.UpdateStatusEffectTimers(currentTick); } this.LastTurnAtTick = currentTick; this.NextTurnAtTick = currentTick + speedComponent.Speed; }