aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-20 18:25:29 +0200
committerKahrl <kahrl@gmx.net>2011-09-20 18:25:29 +0200
commit6599002149f58c03b807cd1378ec17278dbdc09d (patch)
treed9f7ed6f77d8d42d40342ce1c30a1d02754745a5 /src/exceptions.h
parentcbd2bcf102bd338ba1d97ad54bd257913f4dcd36 (diff)
downloadminetest-6599002149f58c03b807cd1378ec17278dbdc09d.tar.gz
minetest-6599002149f58c03b807cd1378ec17278dbdc09d.tar.bz2
minetest-6599002149f58c03b807cd1378ec17278dbdc09d.zip
fix a numerical problem, but tool is still jittery
Diffstat (limited to 'src/exceptions.h')
0 files changed, 0 insertions, 0 deletions
class TestActiveObject : public TestBase { public: TestActiveObject() { TestManager::registerTestModule(this); } const char *getName() { return "TestActiveObject"; } void runTests(IGameDef *gamedef); void testAOAttributes(); }; static TestActiveObject g_test_instance; void TestActiveObject::runTests(IGameDef *gamedef) { TEST(testAOAttributes); } class TestAO : public ActiveObject { public: TestAO(u16 id) : ActiveObject(id) {} virtual ActiveObjectType getType() const { return ACTIVEOBJECT_TYPE_TEST; } virtual bool getCollisionBox(aabb3f *toset) const { return false; } virtual bool getSelectionBox(aabb3f *toset) const { return false; } virtual bool collideWithObjects() const { return false; } }; void TestActiveObject::testAOAttributes() { TestAO ao(44); UASSERT(ao.getId() == 44); ao.setId(558); UASSERT(ao.getId() == 558); }