MCPcopy Create free account
hub / github.com/axmolengine/axmol / onEnter

Method onEnter

tests/cpp-tests/Source/NavMeshTest/NavMeshTest.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52#if !defined(AX_ENABLE_NAVMESH) || !defined(AX_ENABLE_PHYSICS)
53void 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
68NavMeshBaseTestDemo::NavMeshBaseTestDemo() : _camera(nullptr), _needMoveAgents(false) {}

Callers

nothing calls this directly

Calls 6

getInstanceFunction · 0.85
getPhysics3DWorldFunction · 0.85
Vec2Function · 0.50
Vec3Function · 0.50
setPositionMethod · 0.45
rayCastMethod · 0.45

Tested by

no test coverage detected