1 //------------------------------------------------------------------------- 2 /* 3 Copyright (C) 2010-2019 EDuke32 developers and contributors 4 Copyright (C) 2019 sirlemonhead, Nuke.YKT 5 6 This file is part of PCExhumed. 7 8 PCExhumed is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License version 2 10 as published by the Free Software Foundation. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 16 See the GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 */ 22 //------------------------------------------------------------------------- 23 24 #ifndef __lighting_h__ 25 #define __lighting_h__ 26 27 extern short nFlashDepth; 28 29 void InitLights(); 30 void AddFlash(short nSector, int x, int y, int z, int val); 31 void SetTorch(int nPlayer, int bTorchOnOff); 32 void UndoFlashes(); 33 void DoLights(); 34 void AddFlow(int nSprite, int nSpeed, int b); 35 void BuildFlash(short nPlayer, short nSector, int nVal); 36 void AddGlow(short nSector, int nVal); 37 void AddFlicker(short nSector, int nVal); 38 39 extern short bTorch; 40 41 #endif