VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfobjcore
vrfPrintConsoleCommands.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
vrfobjcore/vrfobjcoreDefines.h
"
4
#include "
vrfutil/consoleCommandManager.h
"
5
6
class
DtVrfObjectManager
;
7
8
class
DT_DLL_vrfobjcore
DtNotifyLevelCommand
:
public
DtConsoleCommand
9
{
10
public
:
11
DtNotifyLevelCommand
()
12
:
DtConsoleCommand
()
13
{
14
15
}
16
~DtNotifyLevelCommand
() { };
17
virtual
bool
execute
(
const
DtString
& parameters);
18
19
virtual
DtString
help
(
const
DtString
& parameters)
20
{
21
return
"Sets the notify level, 'notify [channel] level'"
;
22
};
23
24
virtual
bool
showInHelp
()
const
{
return
true
; };
25
};
26
27
class
DT_DLL_vrfobjcore
DtEchoCommand
:
public
DtConsoleCommand
28
{
29
public
:
30
DtEchoCommand
(
int
notifyLevel)
31
:
DtConsoleCommand
()
32
, myNotifyLevel(notifyLevel)
33
{
34
35
}
36
37
~DtEchoCommand
() { };
38
39
virtual
bool
execute
(
const
DtString
& parameters);
40
41
virtual
DtString
help
(
const
DtString
& parameters)
42
{
43
return
"Echoes text, optionally using channels."
;
44
};
45
46
virtual
bool
showInHelp
()
const
{
return
true
; };
47
48
virtual
void
setNotifyLevel(
int
nl)
49
{
50
myNotifyLevel = nl;
51
}
52
53
protected
:
54
int
myNotifyLevel
;
55
};
56
57
class
DT_DLL_vrfobjcore
DtObjectConsoleLevelCommand
:
public
DtConsoleCommand
58
{
59
public
:
60
DtObjectConsoleLevelCommand
(
DtVrfObjectManager
* objMgr)
61
:
DtConsoleCommand
()
62
, myObjectManager(objMgr)
63
{
64
65
}
66
67
~DtObjectConsoleLevelCommand
() { };
68
virtual
bool
execute
(
const
DtString
& parameters);
69
70
virtual
DtString
help
(
const
DtString
& parameters)
71
{
72
return
"Sets the object console level for an entity."
;
73
}
74
75
virtual
bool
showInHelp
()
const
{
return
true
; };
76
77
protected
:
78
DtVrfObjectManager
* myObjectManager;
79
};
80
81
class
DT_DLL_vrfobjcore
DtObjectConsoleEchoCommand
:
public
DtConsoleCommand
82
{
83
public
:
84
DtObjectConsoleEchoCommand
(
DtVrfObjectManager
* objMgr,
int
notifyLevel)
85
:
DtConsoleCommand
()
86
, myObjectManager(objMgr)
87
, myNotifyLevel(notifyLevel)
88
{
89
90
}
91
92
~DtObjectConsoleEchoCommand
() { };
93
virtual
bool
execute
(
const
DtString
& parameters);
94
95
virtual
DtString
help
(
const
DtString
& parameters)
96
{
97
return
"Echo command for an entity's object console."
;
98
}
99
100
virtual
bool
showInHelp
()
const
{
return
true
; };
101
102
protected
:
103
DtVrfObjectManager
* myObjectManager;
104
int
myNotifyLevel
;
105
};
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)