2016-03-01 15:47:10 +00:00
|
|
|
#ifndef __DSECTOREFFECT_H__
|
|
|
|
#define __DSECTOREFFECT_H__
|
|
|
|
|
|
|
|
#include "dthinker.h"
|
|
|
|
#include "r_defs.h"
|
|
|
|
|
|
|
|
class DSectorEffect : public DThinker
|
|
|
|
{
|
|
|
|
DECLARE_CLASS (DSectorEffect, DThinker)
|
|
|
|
public:
|
|
|
|
DSectorEffect (sector_t *sector);
|
|
|
|
|
2016-09-19 17:14:30 +00:00
|
|
|
|
2016-09-19 13:07:53 +00:00
|
|
|
void Serialize(FSerializer &arc);
|
2016-03-01 15:47:10 +00:00
|
|
|
void Destroy();
|
|
|
|
|
|
|
|
sector_t *GetSector() const { return m_Sector; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
DSectorEffect ();
|
|
|
|
sector_t *m_Sector;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DMover : public DSectorEffect
|
|
|
|
{
|
|
|
|
DECLARE_CLASS (DMover, DSectorEffect)
|
|
|
|
HAS_OBJECT_POINTERS
|
|
|
|
public:
|
|
|
|
DMover (sector_t *sector);
|
2016-04-09 10:07:34 +00:00
|
|
|
void StopInterpolation(bool force = false);
|
2016-03-01 15:47:10 +00:00
|
|
|
protected:
|
|
|
|
TObjPtr<DInterpolation> interpolation;
|
|
|
|
private:
|
|
|
|
protected:
|
|
|
|
DMover ();
|
2016-09-19 17:14:30 +00:00
|
|
|
|
2016-09-19 13:07:53 +00:00
|
|
|
void Serialize(FSerializer &arc);
|
2016-03-01 15:47:10 +00:00
|
|
|
void Destroy();
|
|
|
|
};
|
|
|
|
|
|
|
|
class DMovingFloor : public DMover
|
|
|
|
{
|
|
|
|
DECLARE_CLASS (DMovingFloor, DMover)
|
|
|
|
public:
|
|
|
|
DMovingFloor (sector_t *sector);
|
|
|
|
protected:
|
|
|
|
DMovingFloor ();
|
|
|
|
};
|
|
|
|
|
|
|
|
class DMovingCeiling : public DMover
|
|
|
|
{
|
|
|
|
DECLARE_CLASS (DMovingCeiling, DMover)
|
|
|
|
public:
|
2016-06-13 11:58:04 +00:00
|
|
|
DMovingCeiling (sector_t *sector, bool interpolate = true);
|
2016-03-01 15:47:10 +00:00
|
|
|
protected:
|
|
|
|
DMovingCeiling ();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DSECTOREFFECT_H__
|