3 * Iter Vehemens ad Necem (IVAN)
4 * Copyright (C) Timo Kiviluoto
5 * Released under the GNU General
8 * See LICENSING which should be included
9 * along with this file for more details
15 #include "ivancommon.h"
22 #define ADD_MESSAGE msgsystem::AddMessage
33 static void LIKE_PRINTF(1, 2) AddMessage(cchar
*, ...);
35 static void DrawMessageHistory();
37 static void Save(outputfile
&);
38 static void Load(inputfile
&);
39 static void ScrollDown();
40 static void ScrollUp();
41 static void EnableMessages() { Enabled
= true; }
42 static void DisableMessages() { Enabled
= false; }
43 static void EnterBigMessageMode() { BigMessageMode
= true; }
44 static void LeaveBigMessageMode();
46 static void InitMessagesSinceLastKeyScan();
47 static void ThyMessagesAreNowOld();
49 static felist MessageHistory
;
50 static festring LastMessage
;
51 static festring BigMessage
;
55 static truth BigMessageMode
;
56 static truth MessagesChanged
;
57 static bitmap
* QuickDrawCache
;
58 static int LastMessageLines
;
64 static void playSound (const festring
&Buffer
);
65 static void setVolume (sLong vol
); // 0..128
67 static void initSound ();
70 static int addFile (const festring
&filename
);
71 //static truth matches (const festring &Pattern, const festring &Buffer);
72 static struct SoundFile
*findMatchingSound (const festring
&Buffer
);
75 static int SoundState
;
76 static std::vector
<struct SoundFile
> files
;
77 static std::vector
<struct SoundInfo
> patterns
;