-
Notifications
You must be signed in to change notification settings - Fork 2
/
bullet.cpp
92 lines (72 loc) · 1.55 KB
/
bullet.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include "bullet.h"
#include "validate.h"
CBody* BulletList;
EXPORT i32 gBullets;
// @MEDIUMTODO
void CBullet::BlowUp(void)
{
printf("CBullet::BlowUp(void)");
}
// @SMALLTODO
void CBullet::GiveScaledDamageToEnviro(i32)
{
printf("CBullet::GiveScaledDamageToEnviro(i32)");
}
// @SMALLTODO
void CBullet::GiveScaledDamageToObjects(CBody *,i32,i32,i32,HitId)
{
printf("CBullet::GiveScaledDamageToObjects(CBody *,i32,i32,i32,HitId)");
}
/*
// @SMALLTODO
void CSmokePuff::Move(void)
{
printf("CSmokePuff::Move(void)");
}
// @SMALLTODO
CSmokePuff::~CSmokePuff(void)
{
printf("CSmokePuff::~CSmokePuff(void)");
}
*/
// @Ok
CBullet::~CBullet(void)
{
--gBullets;
delete reinterpret_cast<CItem*>(this->field_10C);
if (this->field_120)
{
reinterpret_cast<u8*>(this->field_120)[58] = 0;
reinterpret_cast<u32*>(this->field_120)[21] = 1;
}
}
// @NotOk
// Global
CBullet::CBullet(void)
{
this->field_114 = 0;
this->field_118 = 0;
this->field_11C = 0;
this->field_130 = 0;
this->field_134 = 0;
this->field_138 = 0;
this->InitItem("items");
gBullets++;
this->field_28 = 2048;
this->field_2A = 2048;
this->field_2C = 2048;
this->mFlags |= 0x200;
this->mCBodyFlags &= 0xFFFD;
}
void validate_CBullet(void)
{
VALIDATE_SIZE(CBullet, 0x13C);
VALIDATE(CBullet, field_10C, 0x10C);
VALIDATE(CBullet, field_114, 0x114);
VALIDATE(CBullet, field_118, 0x118);
VALIDATE(CBullet, field_11C, 0x11C);
VALIDATE(CBullet, field_120, 0x120);
VALIDATE(CBullet, field_130, 0x130);
VALIDATE(CBullet, field_134, 0x134);
VALIDATE(CBullet, field_138, 0x138);
}