VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfPrintConsoleCommands.h
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
9 {
10 public:
13  {
14 
15  }
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 
28 {
29 public:
30  DtEchoCommand(int notifyLevel)
32  , myNotifyLevel(notifyLevel)
33  {
34 
35  }
36 
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:
55 };
56 
58 {
59 public:
62  , myObjectManager(objMgr)
63  {
64 
65  }
66 
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 
82 {
83 public:
86  , myObjectManager(objMgr)
87  , myNotifyLevel(notifyLevel)
88  {
89 
90  }
91 
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;
105 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)