Pol  Revision:cb584c9
listenpt.h
Go to the documentation of this file.
1 
7 #ifndef LISTENPT_H
8 #define LISTENPT_H
9 
10 #include "../clib/rawtypes.h"
11 #include "reftypes.h"
12 
13 namespace Pol
14 {
15 namespace Bscript
16 {
17 class BObjectImp;
18 class ObjArray;
19 }
20 namespace Mobile
21 {
22 class Character;
23 }
24 namespace Core
25 {
26 class UOExecutor;
27 class UObject;
28 
30 {
31 public:
32  ListenPoint( UObject* obj, UOExecutor* uoexec, int range, int flags );
33  ~ListenPoint();
34 
37  int range;
38  int flags;
39 };
40 
41 const char* TextTypeToString( u8 texttype ); // DAVE
42 
43 void sayto_listening_points( Mobile::Character* speaker, const char* p_text, int p_textlen,
44  u8 texttype, // DAVE
45  const u16* p_wtext = nullptr, const char* p_lang = nullptr,
46  int p_wtextlen = 0, Bscript::ObjArray* speechtokens = nullptr );
47 
48 const int LISTENPT_HEAR_GHOSTS = 0x01;
49 const int LISTENPT_HEAR_TOKENS = 0x02;
50 const int LISTENPT_NO_SPEECH = 0x04;
51 
52 void register_for_speech_events( UObject* obj, UOExecutor* uoexec, int range, int flags );
54 void clear_listen_points();
55 
57 }
58 }
59 #endif
unsigned char u8
Definition: rawtypes.h:25
void register_for_speech_events(UObject *obj, UOExecutor *uoexec, int range, int flags)
Definition: listenpt.cpp:114
UObjectRef object
Definition: listenpt.h:35
const int LISTENPT_HEAR_TOKENS
Definition: listenpt.h:49
const int LISTENPT_HEAR_GHOSTS
Definition: listenpt.h:48
void deregister_from_speech_events(UOExecutor *uoexec)
Definition: listenpt.cpp:101
void sayto_listening_points(Mobile::Character *speaker, const char *p_text, int, u8 texttype, const u16 *p_wtext, const char *p_lang, int p_wtextlen, Bscript::ObjArray *speechtokens)
Definition: listenpt.cpp:48
unsigned short u16
Definition: rawtypes.h:26
const char * TextTypeToString(u8 texttype)
Definition: listenpt.cpp:33
void clear_listen_points()
Bscript::BObjectImp * GetListenPoints()
Definition: listenpt.cpp:119
UOExecutor * uoexec
Definition: listenpt.h:36
const int LISTENPT_NO_SPEECH
Definition: listenpt.h:50
Definition: berror.cpp:12