Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TestCollision Class Reference
+ Inheritance diagram for TestCollision:
+ Collaboration diagram for TestCollision:

Public Member Functions

 TestCollision ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testAxisAlignedCollision ()
 
void testCollisionMoveSimple (IGameDef *gamedef)
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
void runTest (const char *name, std::function< void()> &&test)
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestCollision()

TestCollision::TestCollision ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestCollision::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestCollision::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References TEST, testAxisAlignedCollision(), and testCollisionMoveSimple().

+ Here is the call graph for this function:

◆ testAxisAlignedCollision()

void TestCollision::testAxisAlignedCollision ( )

References axisAlignedCollision(), and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testCollisionMoveSimple()

void TestCollision::testCollisionMoveSimple ( IGameDef * gamedef)

References collisionMoveResult::collides, COLLISION_AXIS_Y, COLLISION_NODE, collisionMoveSimple(), collisionMoveResult::collisions, fpos, g_collision_problems_encountered, MAP_BLOCKSIZE, collisionMoveResult::standing_on_object, t_CONTENT_STONE, collisionMoveResult::touching_ground, UASSERT, UASSERTEQ, and UASSERTEQ_V3F.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: