2004-05-29 05:32:33 +02:00
|
|
|
// PathfindEngine.h
|
|
|
|
//
|
2004-07-20 21:30:35 +02:00
|
|
|
// Mark Thompson mot20@cam.ac.uk / mark@wildfiregames.com
|
2004-05-29 05:32:33 +02:00
|
|
|
//
|
|
|
|
// The pathfinding engine singleton.
|
|
|
|
//
|
|
|
|
// Usage: g_Pathfinder.requestPath( HEntity me, float x, float y );
|
|
|
|
//
|
|
|
|
// Mark Thompson mot20@cam.ac.uk / mark@wildfiregames.com
|
|
|
|
|
|
|
|
#ifndef PATHFIND_ENGINE_INCLUDED
|
|
|
|
#define PATHFIND_ENGINE_INCLUDED
|
|
|
|
|
|
|
|
#include "Singleton.h"
|
|
|
|
#include "EntityHandles.h"
|
|
|
|
#include "Vector2D.h"
|
|
|
|
|
|
|
|
#define g_Pathfinder CPathfindEngine::GetSingleton()
|
|
|
|
|
|
|
|
class CPathfindEngine : public Singleton<CPathfindEngine>
|
|
|
|
{
|
|
|
|
public:
|
2004-07-23 12:56:52 +02:00
|
|
|
CPathfindEngine();
|
2004-05-29 05:32:33 +02:00
|
|
|
void requestPath( HEntity entity, const CVector2D& destination );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|