| 1 |
// |
| 2 |
// Copyright(C) 1993-1996 Id Software, Inc. |
| 3 |
// Copyright(C) 1993-2008 Raven Software |
| 4 |
// Copyright(C) 2005-2014 Simon Howard |
| 5 |
// |
| 6 |
// This program is free software; you can redistribute it and/or |
| 7 |
// modify it under the terms of the GNU General Public License |
| 8 |
// as published by the Free Software Foundation; either version 2 |
| 9 |
// of the License, or (at your option) any later version. |
| 10 |
// |
| 11 |
// This program is distributed in the hope that it will be useful, |
| 12 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
// GNU General Public License for more details. |
| 15 |
// |
| 16 |
|
| 17 |
#ifndef __HEXEN_P_ANIM__ |
| 18 |
#define __HEXEN_P_ANIM__ |
| 19 |
|
| 20 |
#define MAX_ANIM_DEFS 20 |
| 21 |
|
| 22 |
typedef struct |
| 23 |
{ |
| 24 |
int type; |
| 25 |
int index; |
| 26 |
int tics; |
| 27 |
int currentFrameDef; |
| 28 |
int startFrameDef; |
| 29 |
int endFrameDef; |
| 30 |
} animDef_t; |
| 31 |
|
| 32 |
extern animDef_t AnimDefs[MAX_ANIM_DEFS]; |
| 33 |
|
| 34 |
extern int NextLightningFlash; |
| 35 |
extern int LightningFlash; |
| 36 |
|
| 37 |
void P_AnimateSurfaces(void); |
| 38 |
void P_ForceLightning(void); |
| 39 |
void P_InitLightning(void); |
| 40 |
void P_InitFTAnims(void); |
| 41 |
|
| 42 |
#endif |