DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
npcharacter.hpp
1#pragma once
2
3#include "common.h"
4
5#include "character.hpp"
6
7// clang-format off
11enum NP_SEQUENCE_OPERATION {
12 NP_SEQUENCE_UNUSED = 0,
13 NP_SEQUENCE_MOVE = 1,
14 NP_SEQUENCE_WAIT = 2
15};
16
17// clang-format on
18
23 NP_SEQUENCE_OPERATION operation;
25 u8 unk_08[8];
26 float destination[4];
27 float speed[3];
28 u8 unk_2C[0x24];
29};
30
31STATIC_ASSERT(sizeof(NP_SEQUENCE) == 0x50);
32
36class CNPCharacter : public CCharacter {
37public:
41 u8 unk_11BC[4];
45 char resource_name[0x20];
52 s32 unk_1480;
57 u8 unk_1494[0xC];
58
66 virtual void Step();
67
75 virtual void ShadowStep();
76
84 void PlaySeq();
85
93 void ClearSeq();
94
102 int SetSeq(float *destination, float speed);
103
111 int SetWait(int frames);
112
120 int CheckSeq();
121
130
139
147 void NextSeq();
148
156 virtual void Draw();
157
165 virtual void DrawShadow();
166
174 int CheckDraw();
175
183 virtual int PickUpPoly(float *position, CCPoly *polygons);
184
192 virtual void Initialize();
193
201 CNPCharacter();
202};
203
204STATIC_ASSERT(sizeof(CNPCharacter) == 0x14A0);
205
207extern CNPCharacter EdVillager[10];
int SetSeq(float *destination, float speed)
virtual void Step()
s32 recurring_talk_event
virtual int PickUpPoly(float *position, CCPoly *polygons)
virtual void Initialize()
NP_SEQUENCE sequences[8]
s32 alpha_step_override
virtual void DrawShadow()
NP_SEQUENCE * GetNowSeq()
virtual void Draw()
NP_SEQUENCE * GetNextSeq()
char resource_name[0x20]
int SetWait(int frames)
virtual void ShadowStep()
float speed[3]
NP_SEQUENCE_OPERATION operation
float destination[4]