Pol  Revision:cb584c9
unimod.h
Go to the documentation of this file.
1 
7 #ifndef H_UNIEMOD_H
8 #define H_UNIEMOD_H
9 
10 #ifndef BSCRIPT_EXECMODL_H
11 #include "../../bscript/execmodl.h"
12 #endif
13 
14 #include "../../clib/rawtypes.h"
15 #include "../pktdef.h"
16 #include "../uoexec.h"
17 #include "../uoexhelp.h"
18 
19 namespace Pol
20 {
21 namespace Bscript
22 {
23 class BObjectImp;
24 } // namespace Bscript
25 namespace Core
26 {
27 class UOExecutor;
28 class UObject;
29 } // namespace Core
30 namespace Items
31 {
32 class Item;
33 } // namespace Items
34 namespace Mobile
35 {
36 class Character;
37 } // namespace Mobile
38 } // namespace Pol
39 
40 namespace Pol
41 {
42 namespace Module
43 {
44 extern u16 gwtext[( SPEECH_MAX_LEN + 1 )];
45 
46 class UnicodeExecutorModule : public Bscript::TmplExecutorModule<UnicodeExecutorModule>
47 {
48 public:
49  explicit UnicodeExecutorModule( Core::UOExecutor& exec );
51 
53 
54  Bscript::BObjectImp* mf_PrintTextAboveUC(); // OverObject, Text, Font, Color
55  Bscript::BObjectImp* mf_PrivateTextAboveUC(); // OverObject, Text, ToChar, Font, Color
56 
57  Bscript::BObjectImp* mf_BroadcastUC(); // Text
58  Bscript::BObjectImp* mf_SendSysMessageUC(); // Character, Text
59 
60  Bscript::BObjectImp* mf_RequestInputUC(); // ToChar, Item, TextPrompt
61  Bscript::BObjectImp* mf_SendTextEntryGumpUC(); // ToChar, Text1, Cancel, Style, MaxLen, Text2
62 
64 
65 protected:
66  bool getCharacterParam( unsigned param, Mobile::Character*& chrptr );
67  bool getItemParam( unsigned param, Items::Item*& itemptr );
68  bool getUObjectParam( unsigned param, Core::UObject*& objptr );
69 };
70 
71 inline bool UnicodeExecutorModule::getCharacterParam( unsigned param, Mobile::Character*& chrptr )
72 {
73  return Core::getCharacterParam( exec, param, chrptr );
74 }
75 
76 inline bool UnicodeExecutorModule::getItemParam( unsigned param, Items::Item*& itemptr )
77 {
78  return Core::getItemParam( exec, param, itemptr );
79 }
80 
81 inline bool UnicodeExecutorModule::getUObjectParam( unsigned param, Core::UObject*& objptr )
82 {
83  return Core::getUObjectParam( exec, param, objptr );
84 }
85 }
86 }
87 #endif
bool getItemParam(unsigned param, Items::Item *&itemptr)
Definition: unimod.h:76
u16 gwtext[(SPEECH_MAX_LEN+1)]
Definition: unimod.cpp:140
Core::UOExecutor & uoexec
Definition: unimod.h:52
#define SPEECH_MAX_LEN
Definition: pktdef.h:27
unsigned short u16
Definition: rawtypes.h:26
bool getCharacterParam(Bscript::Executor &exec, unsigned param, Mobile::Character *&chrptr)
Definition: uoexhelp.cpp:140
bool getItemParam(Executor &exec, unsigned param, Items::Item *&itemptr)
Definition: uoexhelp.cpp:219
bool getUObjectParam(Executor &exec, unsigned param, UObject *&objptr)
Definition: uoexhelp.cpp:369
bool getCharacterParam(unsigned param, Mobile::Character *&chrptr)
Definition: unimod.h:71
bool getUObjectParam(unsigned param, Core::UObject *&objptr)
Definition: unimod.h:81
Mobile::Character * prompt_chr
Definition: unimod.h:63
Definition: berror.cpp:12