DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
dranmapfield.hpp
1#pragma once
2
3#include "common.h"
4
5#include "character.hpp"
6#include "dataalloc_fwd.hpp"
7
12public:
18 void Initialize() {
20 }
21
25 void LoadPackData(unsigned int *pack, char *name, CDataAlloc2<1> *model_alloc, CDataAlloc2<1> *texture_alloc) {
26 character.LoadPackData(pack, name, model_alloc, texture_alloc);
27 }
28
32 void SetPosition(float x, float y, float z) {
33 character.SetPosition(x, y, z);
34 }
35
39 void SetRotation(float x, float y, float z) {
40 character.SetRotation(x, y, z);
41 }
42
50 void LoadModel(unsigned int *pack, CDataAlloc2<1> *arena);
51
59 int AddCollision(CCPoly *poly, int count, CBoxVu0 box);
60
68 void LoadCollision(unsigned int *pack, CDataAlloc2<1> *arena);
69
77 void Draw();
78
86 void Step();
87};
88
89STATIC_ASSERT(sizeof(CDranMapField) == 0x11B0);
90
98 s32 state[12];
101 u8 unk_D4A8[8];
102};
103
104STATIC_ASSERT(sizeof(DRAN_MAP_FIELD_SET) == 0xD4B0);
105
109extern "C" DRAN_MAP_FIELD_SET DranMapField;
110
114extern char OverMessage[];
virtual void LoadPackData(unsigned int *pack, char *name, CDataAlloc2< 1 > *model_alloc, CDataAlloc2< 1 > *texture_alloc)
virtual void SetRotation(float x, float y, float z)
virtual void Initialize()
virtual void SetPosition(float x, float y, float z)
void SetRotation(float x, float y, float z)
void SetPosition(float x, float y, float z)
int AddCollision(CCPoly *poly, int count, CBoxVu0 box)
void LoadCollision(unsigned int *pack, CDataAlloc2< 1 > *arena)
void LoadPackData(unsigned int *pack, char *name, CDataAlloc2< 1 > *model_alloc, CDataAlloc2< 1 > *texture_alloc)
void LoadModel(unsigned int *pack, CDataAlloc2< 1 > *arena)
CCharacter character
CDranMapField field[12]
CFrame * collision[12]