MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetAnimDirection

Method GetAnimDirection

src/Managers/AnimationManager.cpp:244–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void CAnimationManager::GetAnimDirection(uint8_t &dir, bool &mirror)
245{
246 switch (dir)
247 {
248 case 2:
249 case 4:
250 {
251 mirror = (dir == 2);
252 dir = 1;
253 break;
254 }
255 case 1:
256 case 5:
257 {
258 mirror = (dir == 1);
259 dir = 2;
260 break;
261 }
262 case 0:
263 case 6:
264 {
265 mirror = (dir == 0);
266 dir = 3;
267 break;
268 }
269 case 3:
270 {
271 dir = 0;
272 break;
273 }
274 case 7:
275 {
276 dir = 4;
277 break;
278 }
279 default:
280 break;
281 }
282}
283
284void CAnimationManager::GetSittingAnimDirection(uint8_t &dir, bool &mirror, int &x, int &y)
285{

Callers 1

QFORFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected