RandomMovementGenerator<Creature>::RandomMovementGenerator(const Creature& creature) : i_verticalZ(0) { float respX, respY, respZ, respO, wander_distance; creature.GetRespawnCoord(respX, respY, respZ, &respO, &wander_distance); i_nextMoveTime = ShortTimeTracker(0); i_x = respX; i_y = respY; i_z = respZ; i_radius = wander_distance; }
RandomMovementGenerator<Creature>::RandomMovementGenerator(const Creature& creature) { float respX, respY, respZ, respO, wander_distance; creature.GetRespawnCoord(respX, respY, respZ, &respO, &wander_distance); i_nextMoveTime = ShortTimeTracker(0); i_x = respX; i_y = respY; i_z = respZ; i_radius = wander_distance; // TODO - add support for flying mobs using some distance i_verticalZ = 0.0f; }