MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / previous

Method previous

src/Core/Animation/AnimationGroup.cpp:82–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 void AnimationGroup::previous(bool force)
83 {
84 if (checkDelay() || force)
85 {
86 if (m_index == 0)
87 {
88 if (m_loopIndex != 0)
89 m_index = m_groupList.size() - 1;
90 }
91 else
92 m_index--;
93 Debug::Log->trace(" <AnimationGroup> Loading previous image on "
94 "group '{}' (image: {} / {}) "
95 "(repeat: {} / {})",
96 m_name, m_index, m_groupList.size() - 1, m_loopIndex, m_loopAmount - 1);
97 }
98 }
99
100 bool AnimationGroup::isOver() const noexcept
101 {

Callers 2

LoadClassAnimationGroupFunction · 0.80
updateCurrentGroupMethod · 0.80

Calls 2

traceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected