Debian Codegraph @

src/gengine/PlannedDialog.h

raw
1 #ifndef HEADER_PLANNEDDIALOG_H
2 #define HEADER_PLANNEDDIALOG_H
3
4 class Dialog;
5
6 #include "NoCopy.h"
7
8 #include <string>
9
10 /**
11 * Active dialog.
12 */
13 class PlannedDialog : public NoCopy {
14 private:
15 int m_actor;
16 const Dialog *m_dialog;
17 int m_channel;
18 int m_endtime;
19 int m_minTime;
20 private:
21 bool isPlaying() const;
22 public:
23 PlannedDialog(int actor, const Dialog *dialog, int minTime);
24
25 void talk(int volume, int loops=0);
26 void killTalk();
27
28 bool isTalking() const;
29 bool equalsActor(int other) const;
30 };
31
32 #endif
33