1
+ #include " ../../necro_core/ncore.h"
2
+ #include " entity.h"
3
+
4
+ void Entity::setStatut (int newStatut)
5
+ {
6
+ statut = newStatut;
7
+ }
8
+
9
+ int Entity::getStatut ()
10
+ {
11
+ return (statut);
12
+ }
13
+
14
+ void Entity::setPos (float x, float z)
15
+ {
16
+ posX = x;
17
+ posZ = z;
18
+ oldX = posX;
19
+ oldZ = posZ;
20
+ }
21
+
22
+
23
+ void Entity::setPos (float x, float y, float z)
24
+ {
25
+ // The old coord. are used to smooth the move. We suppose that anyone has the same speed, so we might be able to do a little interpolation
26
+ // Pretty old solution...
27
+ oldX = posX;
28
+ oldY = posY;
29
+ oldZ = posZ;
30
+
31
+ posX = x;
32
+ posY = y;
33
+ posZ = z;
34
+ }
35
+
36
+ void Entity::setDir (float direc)
37
+ {
38
+ dir = direc;
39
+ }
40
+
41
+
42
+ float Entity::getPosX ()
43
+ {
44
+ return (posX);
45
+ }
46
+
47
+ float Entity::getPosY ()
48
+ {
49
+ return (posY);
50
+ }
51
+
52
+ float Entity::getPosZ ()
53
+ {
54
+ return (posZ);
55
+ }
56
+
57
+ float Entity::getOldX ()
58
+ {
59
+ return (oldX);
60
+ }
61
+
62
+ float Entity::getOldY ()
63
+ {
64
+ return (oldY);
65
+ }
66
+
67
+ float Entity::getOldZ ()
68
+ {
69
+ return (oldZ);
70
+ }
71
+
72
+ void Entity::setOldX (float x)
73
+ {
74
+ oldX = x;
75
+ }
76
+
77
+ void Entity::setOldY (float y)
78
+ {
79
+ oldY = y;
80
+ }
81
+
82
+ void Entity::setOldZ (float Z)
83
+ {
84
+ oldZ = Z;
85
+ }
86
+
87
+ float Entity::getDir ()
88
+ {
89
+ return (dir);
90
+ }
91
+
92
+ int Entity::getId ()
93
+ {
94
+ return (Id);
95
+ }
96
+
97
+ void Entity::setId (int Id)
98
+ {
99
+ Entity::Id = Id;
100
+ }
101
+
102
+ void Entity::setNick (char * nick)
103
+ {
104
+ strcpy (Entity::nick ,nick);
105
+ }
106
+
107
+ void Entity::setRealName (char * realname)
108
+ {
109
+ strcpy (Entity::realName, realname);
110
+ }
111
+
112
+ void Entity::setInvent1 (int invent1)
113
+ {
114
+ Entity::invent1 = invent1;
115
+ }
116
+
117
+ void Entity::setInvent2 (int invent2)
118
+ {
119
+ Entity::invent2 = invent2;
120
+ }
121
+
122
+ void Entity::setInvent3 (int invent3)
123
+ {
124
+ Entity::invent3 = invent3;
125
+ }
126
+
127
+ void Entity::setInvent4 (int invent4)
128
+ {
129
+ Entity::invent4 = invent4;
130
+ }
131
+
132
+ void Entity::setMindEnergy (int minEne)
133
+ {
134
+ Entity::mindEnergy = minEne;
135
+ }
136
+
137
+ void Entity::setSectInfo (int sectInfo)
138
+ {
139
+ Entity::sectInfo = sectInfo;
140
+ }
141
+
142
+ char * Entity::getNick ()
143
+ {
144
+ return (Entity::nick);
145
+ }
146
+
147
+ char * Entity::getRealName ()
148
+ {
149
+ return (Entity::realName);
150
+ }
151
+
152
+ int Entity::getInvent1 ()
153
+ {
154
+ return (Entity::invent1);
155
+ }
156
+
157
+ int Entity::getInvent2 ()
158
+ {
159
+ return (Entity::invent2);
160
+ }
161
+
162
+ int Entity::getInvent3 ()
163
+ {
164
+ return (Entity::invent3);
165
+ }
166
+
167
+ int Entity::getInvent4 ()
168
+ {
169
+ return (Entity::invent4);
170
+ }
171
+
172
+ int Entity::getMindEnergy ()
173
+ {
174
+ return (Entity::mindEnergy);
175
+ }
176
+
177
+ int Entity::getSectInfo ()
178
+ {
179
+ return (Entity::sectInfo);
180
+ }
0 commit comments