Last change
on this file since 8097 was
7819,
checked in by patrick, 18 years ago
|
trunk: added a collision reaction lib. starting implementation
|
File size:
634 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file cr_engine.h |
---|
3 | * @brief The collision reaction engine, defining generic collision reactions to collision events |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _CR_ENGINE_ |
---|
7 | #define _CR_ENGINE_ |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | |
---|
11 | // FORWARD DECLARATION |
---|
12 | |
---|
13 | //! A default singleton class. |
---|
14 | class CREngine : public BaseObject { |
---|
15 | |
---|
16 | public: |
---|
17 | virtual ~CREngine(void); |
---|
18 | /** @returns a Pointer to the only object of this Class */ |
---|
19 | inline static CREngine* getInstance(void) { if (!singletonRef) singletonRef = new CREngine(); return singletonRef; }; |
---|
20 | |
---|
21 | |
---|
22 | void subscribeToCollisionEvent(); |
---|
23 | |
---|
24 | private: |
---|
25 | CREngine(void); |
---|
26 | static CREngine* singletonRef; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif /* _CR_ENGINE_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.