| 51 | |
| 52 | #if !defined(AX_ENABLE_NAVMESH) || !defined(AX_ENABLE_PHYSICS) |
| 53 | void NavMeshDisabled::onEnter() |
| 54 | { |
| 55 | TTFConfig ttfConfig("fonts/arial.ttf", 16); |
| 56 | auto label = |
| 57 | Label::createWithTTF(ttfConfig, "Should enable AX_ENABLE_NAVMESH & AX_ENABLE_PHYSICS\n to run this test case"); |
| 58 | |
| 59 | auto size = Director::getInstance()->getWinSize(); |
| 60 | label->setPosition(Vec2(size.width / 2, size.height / 2)); |
| 61 | |
| 62 | addChild(label); |
| 63 | |
| 64 | TestCase::onEnter(); |
| 65 | } |
| 66 | #else |
| 67 | |
| 68 | NavMeshBaseTestDemo::NavMeshBaseTestDemo() : _camera(nullptr), _needMoveAgents(false) {} |
nothing calls this directly
no test coverage detected