2006-02-24 04:48:15 +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 ();
|
|
|
|
void Serialize (FArchive &arc);
|
|
|
|
void Tick ();
|
2008-03-22 12:41:36 +00:00
|
|
|
void ForceLightning (int mode);
|
|
|
|
void TerminateLightning();
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void LightningFlash ();
|
|
|
|
|
|
|
|
int NextLightningFlash;
|
|
|
|
int LightningFlashCount;
|
2008-03-22 12:41:36 +00:00
|
|
|
bool Stopped;
|
2006-02-24 04:48:15 +00:00
|
|
|
BYTE *LightningLightLevels;
|
|
|
|
};
|
|
|
|
|
|
|
|
void P_StartLightning ();
|
2008-03-22 12:41:36 +00:00
|
|
|
void P_ForceLightning (int mode);
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
#endif //__A_LIGHTNING_H__
|