Changeset 5206 in orxonox.OLD for trunk/src/lib/shell/shell.h
- Timestamp:
- Sep 19, 2005, 12:31:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.h
r5204 r5206 36 36 37 37 public: 38 Shell(); 38 39 virtual ~Shell(); 39 /** @returns a Pointer to the only object of this Class */40 inline static Shell* getInstance() { if (!Shell::singletonRef) Shell::singletonRef = new Shell(); return Shell::singletonRef; };41 /** @returns true if this class is instanciated, false otherwise */42 inline static bool isInstanciated() { return (Shell::singletonRef == NULL)?false:true; };43 40 44 41 void activate(); … … 75 72 76 73 private: 77 Shell();78 static Shell* singletonRef; //!< The singleton-reference to the only memeber of this class.79 74 80 75 // GENERAL
Note: See TracChangeset
for help on using the changeset viewer.