Revision 1378,
795 bytes
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Line | |
---|
1 | #pragma once
|
---|
2 | #include "Node.h"
|
---|
3 | #include "Vector.h"
|
---|
4 |
|
---|
5 | #define SPTR boost::shared_ptr
|
---|
6 |
|
---|
7 | class Trigger
|
---|
8 | {
|
---|
9 | public:
|
---|
10 | Trigger(void);
|
---|
11 | Trigger(int _type, float time);
|
---|
12 | Trigger(int _type, SPTR<Node> _node, float time);
|
---|
13 | Trigger(int _type, SPTR<Node> _node, SPTR<Node> _secondNode, float _time);
|
---|
14 | Trigger(int _type, SPTR<Node> _node, SPTR<Node> _secondNode, Vector _normal, float _time);
|
---|
15 | ~Trigger(void);
|
---|
16 |
|
---|
17 | void setType(int _type);
|
---|
18 | int getType();
|
---|
19 |
|
---|
20 | void setNode(SPTR<Node> _node);
|
---|
21 | SPTR<Node> getNode();
|
---|
22 | void setSecondNode(SPTR<Node> _node);
|
---|
23 | SPTR<Node> getSecondNode();
|
---|
24 |
|
---|
25 | void setTime(float _time);
|
---|
26 | float getTime();
|
---|
27 |
|
---|
28 | void setNormal(Vector _normal);
|
---|
29 | Vector getNormal();
|
---|
30 | protected:
|
---|
31 | int type;
|
---|
32 | SPTR<Node> node;
|
---|
33 | SPTR<Node> secondNode;
|
---|
34 | Vector normal;
|
---|
35 | float time;
|
---|
36 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.