Fission FSN
Loading...
Searching...
No Matches
fsCHookedLineTrailComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 15/4/2014 15:28
4*
5* File: fsCHookedLineTrailComponent.h
6*
7* Author: Mick Waites
8*
9* Purpose:
10*
11*********************************************************************/
12
13#ifndef fsCHookedLineTrailComponenthdr
14#define fsCHookedLineTrailComponenthdr
15
16#include <fsCore/fsVec2d.h>
17#include <fsCore/fsPoint.h>
18
19#include "fsITrailComponent.h"
20
21class fsCBezierPath;
22
24{
25 friend class fsCComponentFactory;
26
27public:
28
29 static fsF32 distanceBetweenPoints(const fsVec2d& pKnotA, const fsVec2d& pKnotB);
30 static fsVec2d midPoint(const fsVec2d& pStart, const fsVec2d& pEnd);
31
32 static const fsCUniqueId mTypeId;
33
34protected:
35
36 static fsIComponent* create(fsCEntity* pParent);
37
38 void initialiseDo(const fsPoint& pStartPos, const fsPoint& pEndPos) override;
39 void updateDo() override;
40
43
44private:
45
46 fsCBezierPath* mPath;
47};
48
49#endif
Definition fsCBezierPath.h:23
Definition fsCEntity.h:39
static fsF32 distanceBetweenPoints(const fsVec2d &pKnotA, const fsVec2d &pKnotB)
Definition fsCHookedLineTrailComponent.cpp:11
static fsVec2d midPoint(const fsVec2d &pStart, const fsVec2d &pEnd)
Definition fsCHookedLineTrailComponent.cpp:18
void updateDo() override
Definition fsCHookedLineTrailComponent.cpp:69
friend class fsCComponentFactory
Definition fsCHookedLineTrailComponent.h:25
virtual ~fsCHookedLineTrailComponent()
Definition fsCHookedLineTrailComponent.cpp:86
static const fsCUniqueId mTypeId
Definition fsCHookedLineTrailComponent.h:32
static fsIComponent * create(fsCEntity *pParent)
Definition fsCHookedLineTrailComponent.cpp:75
fsCHookedLineTrailComponent(fsCEntity *pParent)
Definition fsCHookedLineTrailComponent.cpp:80
Definition fsCUniqueId.h:21
virtual void initialiseDo()
Definition fsIComponent.h:71
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
fsITrailComponent(fsCEntity *pParent)
Definition fsITrailComponent.cpp:35
float fsF32
Definition fsBaseTypes.h:28
Definition fsPoint.h:17
Definition fsVec2d.h:16