mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
a1cc548af4
Two files were split: g_level.h contained both the game data definitions and some prototypes belonging to the game logic. These were split up. decallib.cpp contained both the data and the animation thinkers. The thinkers are now in their own file.
93 lines
1.6 KiB
C++
93 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include "dthinker.h"
|
|
|
|
struct DDecalThinker : public DThinker
|
|
{
|
|
DECLARE_CLASS (DDecalThinker, DThinker)
|
|
HAS_OBJECT_POINTERS
|
|
public:
|
|
static const int DEFAULT_STAT = STAT_DECALTHINKER;
|
|
void Construct(DBaseDecal *decal)
|
|
{
|
|
TheDecal = decal;
|
|
}
|
|
void Serialize(FSerializer &arc);
|
|
TObjPtr<DBaseDecal*> TheDecal;
|
|
};
|
|
|
|
class DDecalFader : public DDecalThinker
|
|
{
|
|
DECLARE_CLASS (DDecalFader, DDecalThinker)
|
|
public:
|
|
void Construct(DBaseDecal *decal)
|
|
{
|
|
Super::Construct(decal);
|
|
}
|
|
void Serialize(FSerializer &arc);
|
|
void Tick ();
|
|
|
|
int TimeToStartDecay;
|
|
int TimeToEndDecay;
|
|
double StartTrans;
|
|
};
|
|
|
|
class DDecalColorer : public DDecalThinker
|
|
{
|
|
DECLARE_CLASS (DDecalColorer, DDecalThinker)
|
|
public:
|
|
void Construct(DBaseDecal *decal)
|
|
{
|
|
Super::Construct(decal);
|
|
}
|
|
void Serialize(FSerializer &arc);
|
|
void Tick ();
|
|
|
|
int TimeToStartDecay;
|
|
int TimeToEndDecay;
|
|
PalEntry StartColor;
|
|
PalEntry GoalColor;
|
|
};
|
|
|
|
class DDecalStretcher : public DDecalThinker
|
|
{
|
|
DECLARE_CLASS (DDecalStretcher, DDecalThinker)
|
|
public:
|
|
void Construct(DBaseDecal *decal)
|
|
{
|
|
Super::Construct(decal);
|
|
}
|
|
void Serialize(FSerializer &arc);
|
|
void Tick ();
|
|
|
|
int TimeToStart;
|
|
int TimeToStop;
|
|
double GoalX;
|
|
double StartX;
|
|
double GoalY;
|
|
double StartY;
|
|
bool bStretchX;
|
|
bool bStretchY;
|
|
bool bStarted;
|
|
};
|
|
|
|
class DDecalSlider : public DDecalThinker
|
|
{
|
|
DECLARE_CLASS (DDecalSlider, DDecalThinker)
|
|
public:
|
|
void Construct(DBaseDecal *decal)
|
|
{
|
|
Super::Construct(decal);
|
|
}
|
|
void Serialize(FSerializer &arc);
|
|
void Tick ();
|
|
|
|
int TimeToStart;
|
|
int TimeToStop;
|
|
/* double DistX; */
|
|
double DistY;
|
|
double StartX;
|
|
double StartY;
|
|
bool bStarted;
|
|
};
|
|
|