qzdoom/src/g_shared/a_lightning.h
Christoph Oelckers eef724b58e - Added more options to Light_ForceLightning: Setting the first arg to 0
will behave as before, setting it to 1 will create exactly one lighting
  and setting it to 2 will terminate lightning for the current level
  completely. And it will also work on maps that don't have lightning set
  in MAPINFO now.


SVN r837 (trunk)
2008-03-22 12:41:36 +00:00

33 lines
625 B
C++

#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 ();
void ForceLightning (int mode);
void TerminateLightning();
protected:
void LightningFlash ();
int NextLightningFlash;
int LightningFlashCount;
bool Stopped;
BYTE *LightningLightLevels;
};
void P_StartLightning ();
void P_ForceLightning (int mode);
#endif //__A_LIGHTNING_H__