protected override void update(Delta delta) { if (!CurrentBattleState.KeepPartyMembersStatic) { delta.scaleDelta(MathHelper.Lerp(1.0f, 4.0f, Input.LeftTriggerAmount())); } if (stateChanged) { stateChanged = false; CurrentBattleState.Start(); Logger.Log(CurrentBattleState.GetType().Name + " battle state started"); } CurrentBattleState.Update(delta); if (CurrentBattleState.KeepPartyMembersStatic) { RepositionPartyMembers(); } base.update(delta); foreach (PartyMember partyMember in PlayerParty) { partyMember.Update(delta); } foreach (PartyMember partyMember in EnemyParty) { partyMember.Update(delta); } if (CurrentBattleState.BattleStateRenderer != null) { CurrentBattleState.BattleStateRenderer.Update(delta); } if (cameraUpdateDelay > 0.0f) { cameraUpdateDelay -= delta.Time; Camera.Update(delta); } else { updateCamera(() => Camera.Update(delta)); } }
protected override void update(Delta delta) { if (stateChanged) { stateChanged = false; CurrentOverworldState.Start(); Logger.Log(CurrentOverworldState.GetType().Name + " overworld state started"); } CurrentOverworldState.Update(delta); base.update(delta); if (CurrentOverworldState.OverworldStateRenderer != null) { CurrentOverworldState.OverworldStateRenderer.Update(delta); } camera.Update(delta); //Clock.Update(delta); }