| 454 | } |
| 455 | |
| 456 | void MobController::getAnimationTransitionNames(int stateFrom, int stateTo, |
| 457 | std::string& outMobAnimation, |
| 458 | std::string& outNpcAnimation) |
| 459 | { |
| 460 | if (!m_MobCore) |
| 461 | return; |
| 462 | |
| 463 | if (stateTo == -1) |
| 464 | { |
| 465 | // Go from current state to stand |
| 466 | outMobAnimation = ""; |
| 467 | outNpcAnimation = "T_" + m_MobCore->getSchemeName() + "_S" + std::to_string(stateFrom) + "_2_STAND"; |
| 468 | } |
| 469 | else |
| 470 | { |
| 471 | // Go from current state to the next one |
| 472 | outMobAnimation = "T_S" + std::to_string(stateFrom) + "_2_S" + std::to_string(stateTo); |
| 473 | outNpcAnimation = "T_" + m_MobCore->getSchemeName() + "_S" + std::to_string(stateFrom) + "_2_S" + std::to_string(stateTo); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | bool MobController::isInteractingWith(Handle::EntityHandle npc) |
| 478 | { |
nothing calls this directly
no test coverage detected