Revision 1378,
1.4 KB
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Line | |
---|
1 | #include "dxstdafx.h"
|
---|
2 | #include ".\trigger.h"
|
---|
3 |
|
---|
4 | Trigger::Trigger(void)
|
---|
5 | {
|
---|
6 | }
|
---|
7 |
|
---|
8 | Trigger::Trigger(int _type, float _time)
|
---|
9 | {
|
---|
10 | this->type = _type;
|
---|
11 | this->time = _time;
|
---|
12 | }
|
---|
13 |
|
---|
14 | Trigger::Trigger(int _type, SPTR<Node> _node, float _time)
|
---|
15 | {
|
---|
16 | this->type = _type;
|
---|
17 | this->node = _node;
|
---|
18 | this->time = _time;
|
---|
19 | }
|
---|
20 |
|
---|
21 | Trigger::Trigger(int _type, SPTR<Node> _node, SPTR<Node> _secondNode, float _time)
|
---|
22 | {
|
---|
23 | this->type = _type;
|
---|
24 | this->node = _node;
|
---|
25 | this->time = _time;
|
---|
26 | this->secondNode = _secondNode;
|
---|
27 | }
|
---|
28 |
|
---|
29 | Trigger::Trigger(int _type, SPTR<Node> _node, SPTR<Node> _secondNode, Vector _normal, float _time)
|
---|
30 | {
|
---|
31 | this->type = _type;
|
---|
32 | this->node = _node;
|
---|
33 | this->time = _time;
|
---|
34 | this->secondNode = _secondNode;
|
---|
35 | this->normal = _normal;
|
---|
36 | }
|
---|
37 |
|
---|
38 | Trigger::~Trigger(void)
|
---|
39 | {
|
---|
40 | }
|
---|
41 |
|
---|
42 | void Trigger::setType(int _type)
|
---|
43 | {
|
---|
44 | this->type = _type;
|
---|
45 | }
|
---|
46 |
|
---|
47 | int Trigger::getType()
|
---|
48 | {
|
---|
49 | return this->type;
|
---|
50 | }
|
---|
51 |
|
---|
52 | void Trigger::setNode(SPTR<Node> _node)
|
---|
53 | {
|
---|
54 | this->node = _node;
|
---|
55 | }
|
---|
56 |
|
---|
57 | SPTR<Node> Trigger::getNode()
|
---|
58 | {
|
---|
59 | return this->node;
|
---|
60 | }
|
---|
61 |
|
---|
62 | void Trigger::setSecondNode(SPTR<Node> _node)
|
---|
63 | {
|
---|
64 | this->secondNode = _node;
|
---|
65 | }
|
---|
66 |
|
---|
67 | SPTR<Node> Trigger::getSecondNode()
|
---|
68 | {
|
---|
69 | return this->secondNode;
|
---|
70 | }
|
---|
71 |
|
---|
72 | void Trigger::setTime(float _time)
|
---|
73 | {
|
---|
74 | this->time = _time;
|
---|
75 | }
|
---|
76 |
|
---|
77 | float Trigger::getTime()
|
---|
78 | {
|
---|
79 | return this->time;
|
---|
80 | }
|
---|
81 |
|
---|
82 | void Trigger::setNormal(Vector _normal)
|
---|
83 | {
|
---|
84 | this->normal = _normal;
|
---|
85 | }
|
---|
86 |
|
---|
87 | Vector Trigger::getNormal()
|
---|
88 | {
|
---|
89 | return this->normal;
|
---|
90 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.