26 #ifndef SAGA2_SPEECH_H 27 #define SAGA2_SPEECH_H 29 #include "saga2/objects.h" 33 #define MAX_SPEECH_PTRS 20 34 #define MAX_SAMPLES 50 35 #define CHARSPERSECOND 22 36 #define SHORTEST_DURATION TICKSPERSECOND 39 bool isVisible(GameObject *obj);
42 void sentenceGenerator(
char *);
44 void abortAllSpeeches();
45 void queueActorSpeech(
54 bool sayVoice(uint32 s[]);
59 extern int16 speechButtonCount;
64 kSpeakContinued = (1 << 0),
65 kSpeakNoAnimate = (1 << 1),
66 kSpeakWait = (1 << 2),
73 friend void setNextActive();
74 friend void deleteSpeech(ObjectID
id);
75 friend void updateSpeech();
76 friend void queueActorSpeech(
95 uint32 _sampleID[MAX_SAMPLES];
96 char _speechBuffer[512];
99 int16 _selectedButton;
111 void *archive(
void *buf);
117 int16 fits(int16 space);
125 kSpNoAnimate = (1 << 0),
126 kSpHasVoice = (1 << 1),
127 kSpQueued = (1 << 2),
128 kSpActive = (1 << 3),
136 bool append(
char *text, int32 sampID);
142 void setWakeUp(ThreadID th) {
154 friend void setNextActive();
155 friend void deleteSpeech(ObjectID
id);
156 friend void updateSpeech();
158 friend void queueActorSpeech(
171 void SetLock(
int newState);
187 void *archive(
void *buf);
195 Speech *newTask(ObjectID
id, uint16 flags);
198 Speech *findSpeech(ObjectID
id);
201 if (_list.
size() > 0)
202 return _list.
front();
206 int32 activeCount() {
211 return _list.
size() + _inactiveList.
size();
221 void initSpeechTasks();
228 void cleanupSpeechTasks();
Definition: savefile.h:54
size_type size() const
Definition: list.h:198
Definition: memstream.h:194
Definition: objects.h:118
t_T & front()
Definition: list.h:157