Skip to content

Commit

Permalink
Replace/remove animation_base, animation, animator, and screen_transi…
Browse files Browse the repository at this point in the history
…tion classes.
  • Loading branch information
cjhoward committed Jun 23, 2024
1 parent b18f7f3 commit 3c5a9ab
Show file tree
Hide file tree
Showing 39 changed files with 360 additions and 1,387 deletions.
187 changes: 0 additions & 187 deletions src/engine/animation/animation-channel.hpp

This file was deleted.

4 changes: 4 additions & 0 deletions src/engine/animation/animation-player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
// SPDX-License-Identifier: GPL-3.0-or-later

#include <engine/animation/animation-player.hpp>
#include <algorithm>

void animation_player::advance(float seconds)
{
// Prevent negative timesteps
seconds = std::max(0.0f, seconds);

if (!m_sequence)
{
// No active animation sequence, advance position and return
Expand Down
2 changes: 1 addition & 1 deletion src/engine/animation/animation-sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void animation_sequence::trigger_cues(float start_time, float end_time, animatio
{
const auto start_it = m_cues.lower_bound(start_time);
const auto end_it = m_cues.upper_bound(end_time);

for (auto it = start_it; it != end_it; ++it)
{
// Make end time exclusive
Expand Down
79 changes: 0 additions & 79 deletions src/engine/animation/animation.cpp

This file was deleted.

Loading

0 comments on commit 3c5a9ab

Please sign in to comment.