Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
29
class
ListenPoint
30
{
31
public
:
32
ListenPoint
(
UObject
* obj,
UOExecutor
* uoexec,
int
range,
int
flags );
33
~
ListenPoint
();
34
35
UObjectRef
object
;
36
UOExecutor
*
uoexec
;
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 );
53
void
deregister_from_speech_events
(
UOExecutor
* uoexec );
54
void
clear_listen_points
();
55
56
Bscript::BObjectImp
*
GetListenPoints
();
57
}
58
}
59
#endif
u8
unsigned char u8
Definition:
rawtypes.h:25
Pol::Core::register_for_speech_events
void register_for_speech_events(UObject *obj, UOExecutor *uoexec, int range, int flags)
Definition:
listenpt.cpp:114
Pol::Core::ListenPoint::object
UObjectRef object
Definition:
listenpt.h:35
Pol::Core::LISTENPT_HEAR_TOKENS
const int LISTENPT_HEAR_TOKENS
Definition:
listenpt.h:49
Pol::Core::LISTENPT_HEAR_GHOSTS
const int LISTENPT_HEAR_GHOSTS
Definition:
listenpt.h:48
reftypes.h
Pol::Core::deregister_from_speech_events
void deregister_from_speech_events(UOExecutor *uoexec)
Definition:
listenpt.cpp:101
Pol::Core::sayto_listening_points
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
u16
unsigned short u16
Definition:
rawtypes.h:26
ref_ptr< UObject >
Pol::Core::UOExecutor
Definition:
uoexec.h:32
Pol::Mobile::Character
Definition:
charactr.h:334
Pol::Core::TextTypeToString
const char * TextTypeToString(u8 texttype)
Definition:
listenpt.cpp:33
Pol::Bscript::BObjectImp
Definition:
bobject.h:59
Pol::Core::FilterType::Mobile
Pol::Core::clear_listen_points
void clear_listen_points()
Pol::Core::UObject
Definition:
uobject.h:146
Pol::Core::ListenPoint::flags
int flags
Definition:
listenpt.h:38
Pol::Bscript::ObjArray
Definition:
bobject.h:500
Pol::Core::GetListenPoints
Bscript::BObjectImp * GetListenPoints()
Definition:
listenpt.cpp:119
Pol::Core::ListenPoint::range
int range
Definition:
listenpt.h:37
Pol::Core::ListenPoint::uoexec
UOExecutor * uoexec
Definition:
listenpt.h:36
Pol::Core::LISTENPT_NO_SPEECH
const int LISTENPT_NO_SPEECH
Definition:
listenpt.h:50
Pol::Core::ListenPoint
Definition:
listenpt.h:29
Pol
Definition:
berror.cpp:12
pol
listenpt.h
Generated on Wed Oct 10 2018 02:42:00 for Pol by
1.8.11