mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9437] Move waypoint's GetResetPosition function body to .cpp.
This commit is contained in:
parent
d62336cec2
commit
0dfc2093d5
3 changed files with 7 additions and 5 deletions
|
|
@ -271,6 +271,11 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature &unit)
|
||||||
unit.AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode);
|
unit.AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool WaypointMovementGenerator<Creature>::GetResetPosition( Creature&, float& x, float& y, float& z )
|
||||||
|
{
|
||||||
|
return PathMovementBase<Creature, WaypointPath const*>::GetPosition(x,y,z);
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------//
|
//----------------------------------------------------//
|
||||||
void FlightPathMovementGenerator::LoadPath(Player &)
|
void FlightPathMovementGenerator::LoadPath(Player &)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -98,10 +98,7 @@ public PathMovementBase<Creature, WaypointPath const*>
|
||||||
// allow use for overwrite empty implementation
|
// allow use for overwrite empty implementation
|
||||||
bool GetDestination(float& x, float& y, float& z) const { return PathMovementBase<Creature, WaypointPath const*>::GetDestination(x,y,z); }
|
bool GetDestination(float& x, float& y, float& z) const { return PathMovementBase<Creature, WaypointPath const*>::GetDestination(x,y,z); }
|
||||||
|
|
||||||
bool GetResetPosition(Creature&, float& x, float& y, float& z)
|
bool GetResetPosition(Creature&, float& x, float& y, float& z);
|
||||||
{
|
|
||||||
return PathMovementBase<Creature, WaypointPath const*>::GetPosition(x,y,z);
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ClearWaypoints();
|
void ClearWaypoints();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9436"
|
#define REVISION_NR "9437"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue