MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / correctEntityMovePosition

Method correctEntityMovePosition

source/entities/Creature.cpp:3005–3016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3003}
3004
3005void Creature::correctEntityMovePosition(Ogre::Vector3& position)
3006{
3007 static const double offset = 0.3;
3008 if(position.x > 0)
3009 position.x += Random::Double(-offset, offset);
3010
3011 if(position.y > 0)
3012 position.y += Random::Double(-offset, offset);
3013
3014 if(position.z > 0)
3015 position.z += Random::Double(-offset, offset);
3016}
3017
3018void Creature::checkWalkPathValid()
3019{

Callers 1

processMessageMethod · 0.45

Calls 1

DoubleFunction · 0.85

Tested by

no test coverage detected