Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cannedfood.c
Go to the documentation of this file.
1
//-------------Animal food-----------------------------------------------
2
class
DogFoodCan
:
Edible_Base
3
{
4
override
void
Open()
5
{
6
//super.Open();
7
ReplaceEdibleWithNew
(
"DogFoodCan_Opened"
);
8
}
9
10
override
void
SetActions()
11
{
12
super.SetActions();
13
14
AddAction
(
ActionOpen
);
15
}
16
17
override
bool
IsOpen()
18
{
19
return
false
;
20
}
21
}
22
23
class
DogFoodCan_Opened
:
Edible_Base
24
{
25
override
bool
CanDecay
()
26
{
27
return
true
;
28
}
29
30
override
bool
CanProcessDecay
()
31
{
32
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
33
}
34
35
override
void
SetActions
()
36
{
37
super.SetActions();
38
39
AddAction
(
ActionForceFeedSmall
);
40
AddAction
(
ActionEatSmallCan
);
41
}
42
};
43
44
class
CatFoodCan
:
DogFoodCan
45
{
46
override
void
Open()
47
{
48
//super.Open();
49
ReplaceEdibleWithNew
(
"CatFoodCan_Opened"
);
50
}
51
52
override
bool
IsOpen()
53
{
54
return
false
;
55
}
56
}
57
58
class
CatFoodCan_Opened:
DogFoodCan_Opened
59
{
60
61
};
62
63
//-------------PorkCan-----------------------------------------------
64
class
PorkCan
:
Edible_Base
65
{
66
override
void
Open()
67
{
68
//super.Open();
69
ReplaceEdibleWithNew
(
"PorkCan_Opened"
);
70
}
71
72
override
void
SetActions()
73
{
74
super.SetActions();
75
76
AddAction
(
ActionOpen
);
77
}
78
79
override
bool
IsOpen()
80
{
81
return
false
;
82
}
83
}
84
85
class
PorkCan_Opened:
Edible_Base
86
{
87
override
bool
CanDecay
()
88
{
89
return
true
;
90
}
91
92
override
bool
CanProcessDecay
()
93
{
94
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
95
}
96
97
override
void
SetActions
()
98
{
99
super.SetActions();
100
101
AddAction
(
ActionForceFeedSmall
);
102
AddAction
(
ActionEatSmallCan
);
103
}
104
};
105
106
//-------------Lunchmeat-----------------------------------------------
107
class
Lunchmeat
:
Edible_Base
108
{
109
override
void
Open()
110
{
111
//super.Open();
112
ReplaceEdibleWithNew
(
"Lunchmeat_Opened"
);
113
}
114
115
override
void
SetActions()
116
{
117
super.SetActions();
118
119
AddAction
(
ActionOpen
);
120
}
121
122
override
bool
IsOpen()
123
{
124
return
false
;
125
}
126
}
127
128
class
Lunchmeat_Opened:
Edible_Base
129
{
130
override
bool
CanDecay
()
131
{
132
return
true
;
133
}
134
135
override
bool
CanProcessDecay
()
136
{
137
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
138
}
139
140
override
void
SetActions
()
141
{
142
super.SetActions();
143
144
AddAction
(
ActionForceFeedSmall
);
145
AddAction
(
ActionEatSmallCan
);
146
}
147
};
148
149
//-------------Unknown Food-----------------------------------------------
150
class
UnknownFoodCan
:
Edible_Base
151
{
152
override
void
Open()
153
{
154
//super.Open();
155
ReplaceEdibleWithNew
(
"UnknownFoodCan_Opened"
);
156
}
157
158
override
bool
IsOpen()
159
{
160
return
false
;
161
}
162
}
163
164
class
UnknownFoodCan_Opened
:
Edible_Base
165
{
166
void
UnknownFoodCan_Opened
()
167
{
168
InsertAgent
(
eAgents
.FOOD_POISON, 1);
169
}
170
171
override
bool
CanDecay
()
172
{
173
return
true
;
174
}
175
176
override
bool
CanProcessDecay
()
177
{
178
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
179
}
180
181
override
void
SetActions
()
182
{
183
super.SetActions();
184
185
AddAction
(
ActionForceFeedSmall
);
186
AddAction
(
ActionEatSmallCan
);
187
}
188
189
override
bool
IsOpen
()
190
{
191
return
false
;
192
}
193
};
194
195
//-------------Pajka-----------------------------------------------
196
class
Pajka
:
Edible_Base
197
{
198
override
void
Open()
199
{
200
//super.Open();
201
ReplaceEdibleWithNew
(
"Pajka_Opened"
);
202
}
203
204
override
void
SetActions()
205
{
206
super.SetActions();
207
208
AddAction
(
ActionOpen
);
209
}
210
211
override
bool
IsOpen()
212
{
213
return
false
;
214
}
215
}
216
217
class
Pajka_Opened:
Edible_Base
218
{
219
override
bool
CanDecay
()
220
{
221
return
true
;
222
}
223
224
override
bool
CanProcessDecay
()
225
{
226
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
227
}
228
229
override
void
SetActions
()
230
{
231
super.SetActions();
232
233
AddAction
(
ActionForceFeedSmall
);
234
AddAction
(
ActionEatSmallCan
);
235
}
236
237
override
bool
IsOpen
()
238
{
239
return
false
;
240
}
241
};
242
243
//-------------Pate-----------------------------------------------
244
class
Pate
:
Edible_Base
245
{
246
override
void
Open()
247
{
248
//super.Open();
249
ReplaceEdibleWithNew
(
"Pate_Opened"
);
250
}
251
252
override
void
SetActions()
253
{
254
super.SetActions();
255
256
AddAction
(
ActionOpen
);
257
}
258
259
override
bool
IsOpen()
260
{
261
return
false
;
262
}
263
}
264
265
class
Pate_Opened:
Edible_Base
266
{
267
override
bool
CanDecay
()
268
{
269
return
true
;
270
}
271
272
override
bool
CanProcessDecay
()
273
{
274
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
275
}
276
277
override
void
SetActions
()
278
{
279
super.SetActions();
280
281
AddAction
(
ActionForceFeedSmall
);
282
AddAction
(
ActionEatSmallCan
);
283
}
284
285
override
bool
IsOpen
()
286
{
287
return
false
;
288
}
289
};
290
291
//-------------BrisketSpread-----------------------------------------------
292
class
BrisketSpread
:
Edible_Base
293
{
294
override
void
Open()
295
{
296
//super.Open();
297
ReplaceEdibleWithNew
(
"BrisketSpread_Opened"
);
298
}
299
300
override
void
SetActions()
301
{
302
super.SetActions();
303
304
AddAction
(
ActionOpen
);
305
}
306
307
override
bool
IsOpen()
308
{
309
return
false
;
310
}
311
}
312
313
class
BrisketSpread_Opened:
Edible_Base
314
{
315
override
bool
CanDecay
()
316
{
317
return
true
;
318
}
319
320
override
bool
CanProcessDecay
()
321
{
322
return
!(
GetAgents
() &
eAgents
.FOOD_POISON );
323
}
324
325
override
void
SetActions
()
326
{
327
super.SetActions();
328
329
AddAction
(
ActionForceFeedSmall
);
330
AddAction
(
ActionEatSmallCan
);
331
}
332
};
UnknownFoodCan
Definition:
cannedfood.c:150
CanDecay
DogFoodCan Edible_Base CanDecay()
Definition:
cannedfood.c:25
DogFoodCan_Opened
CatFoodCan DogFoodCan_Opened
CatFoodCan
Definition:
cannedfood.c:44
ActionOpen
Definition:
actionopen.c:1
PorkCan
Definition:
cannedfood.c:64
ReplaceEdibleWithNew
void ReplaceEdibleWithNew(string typeName)
Definition:
edible_base.c:494
ActionEatSmallCan
Definition:
actioneatcan.c:42
Pate
Definition:
cannedfood.c:244
UnknownFoodCan_Opened
UnknownFoodCan Edible_Base UnknownFoodCan_Opened()
Definition:
cannedfood.c:166
InsertAgent
override void InsertAgent(int agent, float count=1)
Definition:
itembase.c:3860
DogFoodCan
Definition:
cannedfood.c:2
eAgents
eAgents
Definition:
eagents.c:2
IsOpen
override bool IsOpen()
Definition:
cannedfood.c:15
SetActions
override void SetActions()
Definition:
cannedfood.c:8
AddAction
void AddAction(typename actionName)
Definition:
advancedcommunication.c:86
BrisketSpread
Definition:
cannedfood.c:292
Pajka
Definition:
cannedfood.c:196
CanProcessDecay
override bool CanProcessDecay()
Definition:
cannedfood.c:30
Lunchmeat
Definition:
cannedfood.c:107
GetAgents
override int GetAgents()
Definition:
itembase.c:3875
Edible_Base
Definition:
bearsteakmeat.c:1
ActionForceFeedSmall
Definition:
actionforcefeed.c:65
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
gear
food
cannedfood.c
Generated by
1.8.17