1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/********************************************************************
*
*	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