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

Method next

src/Core/Animation/AnimationGroup.cpp:58–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void AnimationGroup::next(bool force)
59 {
60 if (checkDelay() | force)
61 {
62 m_index++;
63 if (m_index > m_groupList.size() - 1)
64 {
65 if (m_loopIndex < m_loopAmount - 1)
66 {
67 m_index = 0;
68 m_loopIndex++;
69 }
70 else
71 {
72 m_over = true;
73 }
74 }
75 Debug::Log->trace(" <AnimationGroup> Loading next image on group "
76 "'{}' (image: {} / {}) "
77 "(repeat: {} / {})",
78 m_name, m_index, m_groupList.size() - 1, m_loopIndex, m_loopAmount - 1);
79 }
80 }
81
82 void AnimationGroup::previous(bool force)
83 {

Callers 2

LoadClassAnimationGroupFunction · 0.45
updateCurrentGroupMethod · 0.45

Calls 2

traceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected