source: GTP/trunk/App/Games/Jungle_Rumble/src/Trigger.cpp @ 1378

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
4Trigger::Trigger(void)
5{
6}
7
8Trigger::Trigger(int _type, float _time)
9{
10        this->type = _type;
11        this->time = _time;
12}
13
14Trigger::Trigger(int _type, SPTR<Node> _node, float _time)
15{
16        this->type = _type;
17        this->node = _node;
18        this->time = _time;
19}
20
21Trigger::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
29Trigger::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
38Trigger::~Trigger(void)
39{
40}
41
42void Trigger::setType(int _type)
43{
44        this->type = _type;
45}
46
47int Trigger::getType()
48{
49        return this->type;
50}
51
52void Trigger::setNode(SPTR<Node> _node)
53{
54        this->node = _node;
55}
56
57SPTR<Node> Trigger::getNode()
58{
59        return this->node;
60}
61
62void Trigger::setSecondNode(SPTR<Node> _node)
63{
64        this->secondNode = _node;
65}
66
67SPTR<Node> Trigger::getSecondNode()
68{
69        return this->secondNode;
70}
71
72void Trigger::setTime(float _time)
73{
74        this->time = _time;
75}
76
77float Trigger::getTime()
78{
79        return this->time;
80}
81
82void Trigger::setNormal(Vector _normal)
83{
84        this->normal = _normal;
85}
86
87Vector Trigger::getNormal()
88{
89        return this->normal;
90}
Note: See TracBrowser for help on using the repository browser.