aboutsummaryrefslogtreecommitdiff
path: root/src/game/RandomMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-14 12:05:06 -0600
committermegamage <none@none>2008-12-14 12:05:06 -0600
commit7097ffe6dc326362a4d51b4c4453d6ca7ba928c8 (patch)
tree45d372fa9096e5d8bee6306369cc935b703d699a /src/game/RandomMovementGenerator.cpp
parentefe09c1d924012000bdf6c399679d54f4d603c99 (diff)
parent395116752b79401cf79e988b36567988c60c3ab2 (diff)
*Merge with 499.
--HG-- branch : trunk
Diffstat (limited to 'src/game/RandomMovementGenerator.cpp')
-rw-r--r--src/game/RandomMovementGenerator.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp
index cb7cb6ffcda..311cc7c6e17 100644
--- a/src/game/RandomMovementGenerator.cpp
+++ b/src/game/RandomMovementGenerator.cpp
@@ -28,6 +28,17 @@
#define RUNNING_CHANCE_RANDOMMV 20 //will be "1 / RUNNING_CHANCE_RANDOMMV"
template<>
+bool
+RandomMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const
+{
+ if(i_destinationHolder.HasArrived())
+ return false;
+
+ i_destinationHolder.GetDestination(x, y, z);
+ return true;
+}
+
+template<>
void
RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
{