| 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_SN_SONIX__ |
| 18 |
#define __HEXEN_SN_SONIX__ |
| 19 |
|
| 20 |
#include "p_mobj.h" |
| 21 |
|
| 22 |
typedef struct seqnode_s seqnode_t; |
| 23 |
struct seqnode_s |
| 24 |
{ |
| 25 |
int *sequencePtr; |
| 26 |
int sequence; |
| 27 |
mobj_t *mobj; |
| 28 |
int currentSoundID; |
| 29 |
int delayTics; |
| 30 |
int volume; |
| 31 |
int stopSound; |
| 32 |
seqnode_t *prev; |
| 33 |
seqnode_t *next; |
| 34 |
}; |
| 35 |
|
| 36 |
extern int ActiveSequences; |
| 37 |
extern seqnode_t *SequenceListHead; |
| 38 |
|
| 39 |
void SN_InitSequenceScript(void); |
| 40 |
void SN_StartSequence(mobj_t * mobj, int sequence); |
| 41 |
void SN_StartSequenceName(mobj_t * mobj, const char *name); |
| 42 |
void SN_StopSequence(mobj_t * mobj); |
| 43 |
void SN_UpdateActiveSequences(void); |
| 44 |
void SN_StopAllSequences(void); |
| 45 |
int SN_GetSequenceOffset(int sequence, int *sequencePtr); |
| 46 |
void SN_ChangeNodeData(int nodeNum, int seqOffset, int delayTics, int volume, int currentSoundID); |
| 47 |
|
| 48 |
#endif |