mirror of
https://github.com/halpz/re3.git
synced 2024-12-27 18:25:28 +00:00
7d8ffa9ebd
# Conflicts: # src/control/RoadBlocks.cpp # src/core/Collision.h # src/core/Pad.cpp # src/core/SurfaceTable.h # src/core/main.cpp # src/core/re3.cpp # src/peds/Population.cpp # src/render/Fluff.cpp # src/render/Shadows.cpp # src/render/Shadows.h # src/render/Sprite2d.cpp # src/weapons/BulletInfo.cpp
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
#pragma once
|
|
|
|
class CVehicle;
|
|
|
|
enum {
|
|
// NB: not all values are allowed, check the code
|
|
#ifdef SQUEEZE_PERFORMANCE
|
|
NUM_RUBBISH_SHEETS = 32
|
|
#else
|
|
NUM_RUBBISH_SHEETS = 64
|
|
#endif
|
|
};
|
|
|
|
class COneSheet
|
|
{
|
|
public:
|
|
CVector m_basePos;
|
|
CVector m_animatedPos;
|
|
float m_targetZ;
|
|
int8 m_state;
|
|
int8 m_animationType;
|
|
uint32 m_moveStart;
|
|
uint32 m_moveDuration;
|
|
float m_animHeight;
|
|
float m_xDist;
|
|
float m_yDist;
|
|
float m_angle;
|
|
bool m_isVisible;
|
|
bool m_targetIsVisible;
|
|
COneSheet *m_next;
|
|
COneSheet *m_prev;
|
|
|
|
void AddToList(COneSheet *list);
|
|
void RemoveFromList(void);
|
|
};
|
|
|
|
class CRubbish
|
|
{
|
|
static bool bRubbishInvisible;
|
|
static int RubbishVisibility;
|
|
static COneSheet aSheets[NUM_RUBBISH_SHEETS];
|
|
static COneSheet StartEmptyList;
|
|
static COneSheet EndEmptyList;
|
|
static COneSheet StartStaticsList;
|
|
static COneSheet EndStaticsList;
|
|
static COneSheet StartMoversList;
|
|
static COneSheet EndMoversList;
|
|
public:
|
|
static void Render(void);
|
|
static void StirUp(CVehicle *veh); // CAutomobile on PS2
|
|
static void Update(void);
|
|
static void SetVisibility(bool visible);
|
|
static void Init(void);
|
|
static void Shutdown(void);
|
|
};
|
|
|
|
extern RwTexture *gpRubbishTexture[4];
|