2016-03-01 15:47:10 +00:00
|
|
|
#ifndef __A_LIGHTNING_H__
|
|
|
|
#define __A_LIGHTNING_H__
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dthinker.h"
|
|
|
|
|
|
|
|
class DLightningThinker : public DThinker
|
|
|
|
{
|
|
|
|
DECLARE_CLASS (DLightningThinker, DThinker);
|
|
|
|
public:
|
|
|
|
DLightningThinker ();
|
|
|
|
~DLightningThinker ();
|
2016-09-19 17:58:04 +00:00
|
|
|
void Serialize(FSerializer &arc);
|
2016-03-01 15:47:10 +00:00
|
|
|
void Tick ();
|
|
|
|
void ForceLightning (int mode);
|
|
|
|
void TerminateLightning();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void LightningFlash ();
|
|
|
|
|
|
|
|
int NextLightningFlash;
|
|
|
|
int LightningFlashCount;
|
|
|
|
bool Stopped;
|
2016-09-19 17:58:04 +00:00
|
|
|
TArray<short> LightningLightLevels;
|
2016-03-01 15:47:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void P_StartLightning ();
|
|
|
|
void P_ForceLightning (int mode);
|
|
|
|
|
|
|
|
#endif //__A_LIGHTNING_H__
|