/********************************************************************
*
* File: fsCActorPathComponent.h
*
* Purpose: Wrap up in game character pathing
*
*********************************************************************/
#ifndef fsCActorPathComponenthdr
#define fsCActorPathComponenthdr
#include "fsIActorMovementComponent.h"
class fsCResourceName;
class fsCActorPath;
class fsCActorPathComponent : public fsIActorMovementComponent
{
friend class fsCComponentFactory;
public:
static const fsCUniqueId mTypeId;
void pathInitialise(const fsCResourceName& pPathFile);
virtual ~fsCActorPathComponent();<--- Destructor in derived class
protected:
void updateDo(fsS32 pDeltaMs) override;
static fsIComponent* create(fsCEntity* pParent);
fsCActorPathComponent(fsCEntity* pParent);
private:
std::unique_ptr<fsCActorPath> mPath;
};
#endif