summaryrefslogtreecommitdiffstats
path: root/src/render/Fluff.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-04 12:27:09 +0200
committerGitHub <noreply@github.com>2020-08-04 12:27:09 +0200
commitd801167637c9083ca1e506506879f00bdbb9b9b4 (patch)
tree5cad42f40d78c6572bcfb583727781004a731c34 /src/render/Fluff.h
parentMerge branch 'master' into miami (diff)
parentCEscalators done (diff)
downloadre3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar.gz
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar.bz2
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar.lz
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar.xz
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.tar.zst
re3-d801167637c9083ca1e506506879f00bdbb9b9b4.zip
Diffstat (limited to 'src/render/Fluff.h')
-rw-r--r--src/render/Fluff.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/render/Fluff.h b/src/render/Fluff.h
index b8b529f3..a938a4fe 100644
--- a/src/render/Fluff.h
+++ b/src/render/Fluff.h
@@ -1,6 +1,7 @@
#pragma once
#include "common.h"
#include "Vector.h"
+#include "Object.h"
// TODO
class CScriptPath
@@ -54,16 +55,37 @@ public:
static void RegisterPoint(CVector pos, uint32 id);
};
-// TODO
-class CEscalators
+class CEscalator
{
+ CVector m_pos0;
+ CVector m_pos1;
+ CVector m_pos2;
+ CVector m_pos3;
+ CMatrix m_matrix;
+ bool m_bIsActive;
+ bool m_bIsMovingDown;
+ int32 m_stepsCount;
+ float m_lowerEnd;
+ float m_upperEnd;
+ CVector m_midPoint;
+ float m_radius;
+ CObject *m_pSteps[24];
public:
+ CEscalator();
+ void Update(void);
+ void SwitchOff(void);
+ void AddThisOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, bool b_isMovingDown);
};
-// TODO
-class CEscalator
+class CEscalators
{
+ static CEscalator aEscalators[NUM_ESCALATORS];
public:
+ static int32 NumEscalators;
+ static void Init(void);
+ static void Update(void);
+ static void AddOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, bool b_isMovingDown);
+ static void Shutdown(void);
};
class CMovingThing