MCPcopy Create free account
hub / github.com/EasyRPG/Player / testStanding

Function testStanding

tests/game_character_anim.cpp:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static void testStanding(AnimType at, int speed) {
129 const MockGame mg(map_id);
130
131 auto& ch = GetEvent(at, speed);
132
133 CAPTURE(at);
134 CAPTURE(speed);
135
136 // Baseline behavior when event is not moving
137 if (ch.IsSpinning()) {
138 testAnimSpin(ch, false, false);
139 } else if (ch.IsContinuous()) {
140 testAnimContinuous(ch);
141 } else if (ch.IsAnimated()) {
142 testAnimLimit(ch);
143 } else {
144 testAnimFixed(ch);
145 }
146}
147
148static void testPaused(AnimType at, int speed) {
149 const MockGame mg(map_id);

Callers 1

Calls 7

testAnimSpinFunction · 0.85
testAnimContinuousFunction · 0.85
testAnimLimitFunction · 0.85
testAnimFixedFunction · 0.85
IsSpinningMethod · 0.80
IsContinuousMethod · 0.80
IsAnimatedMethod · 0.80

Tested by

no test coverage detected