summaryrefslogtreecommitdiffstats
path: root/src/render/Fluff.h
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-08-19 20:11:19 +0200
committermajestic <majesticcoding@gmail.com>2020-08-20 18:44:26 +0200
commit03c90b7c4028d0db1e6eddf6c63c0842c136517a (patch)
tree46ad14e4b9ea9ee15c28cce255bbca5c8e589ad9 /src/render/Fluff.h
parentupdate librw; fix txd.img bug (diff)
downloadre3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar.gz
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar.bz2
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar.lz
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar.xz
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.tar.zst
re3-03c90b7c4028d0db1e6eddf6c63c0842c136517a.zip
Diffstat (limited to '')
-rw-r--r--src/render/Fluff.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/render/Fluff.h b/src/render/Fluff.h
index a938a4fe..a31ac335 100644
--- a/src/render/Fluff.h
+++ b/src/render/Fluff.h
@@ -2,17 +2,45 @@
#include "common.h"
#include "Vector.h"
#include "Object.h"
+#include "Plane.h"
+
+enum {
+ SCRIPT_PATH_DISABLED = 0,
+ SCRIPT_PATH_INITIALIZED,
+ SCRIPT_PATH_ACTIVE
+};
-// TODO
class CScriptPath
{
public:
+ int32 m_numNodes;
+ CPlaneNode *m_pNode;
+ float m_fTotalLength;
+ float m_fSpeed;
+ float m_fPosition;
+ float m_fObjectLength;
+ int32 m_state;
+ CObject *m_pObjects[6];
+
+ void Clear(void);
+ void Update(void);
+ void InitialiseOne(int32 numNodes, float width);
+ void FindCoorsFromDistanceOnPath(float t, float *pX, float *pY, float *pZ);
+ void SetObjectToControl(CObject *pObj);
};
-// TODO
class CScriptPaths
{
public:
+ static CScriptPath aArray[3];
+ static void Init(void);
+ static void Shutdown(void);
+ static void Update(void);
+ static bool IsOneActive(void);
+ static void Save(uint8 *buf, uint32 *size);
+ static void Load(uint8 *buf, uint32 size);
+ static void Save_ForReplay();
+ static void Load_ForReplay();
};
class CPlaneTrail