mirror of
https://github.com/zeldaret/tp
synced 2026-08-22 06:44:53 -04:00
d_meter_map / some d_a_alink
This commit is contained in:
@@ -1,6 +1,84 @@
|
||||
#ifndef D_MAP_D_MAP_PATH_H
|
||||
#define D_MAP_D_MAP_PATH_H
|
||||
|
||||
#include "d/d_drawlist.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class dDrawPath_c : public dDlst_base_c {
|
||||
public:
|
||||
struct line_class {};
|
||||
|
||||
struct poly_class {};
|
||||
|
||||
struct group_class {};
|
||||
|
||||
struct floor_class {};
|
||||
|
||||
struct room_class {};
|
||||
|
||||
/* 8003CB00 */ void rendering(dDrawPath_c::group_class const*);
|
||||
/* 8003CBBC */ void rendering(dDrawPath_c::floor_class const*);
|
||||
|
||||
/* 8002AD3C */ virtual ~dDrawPath_c();
|
||||
/* 8002ABF0 */ virtual bool isDrawType(int);
|
||||
virtual void getColor(int) = 0;
|
||||
/* 8002AD84 */ virtual void getLineColor(int, int);
|
||||
virtual void getLineWidth(int) = 0;
|
||||
virtual void isSwitch(dDrawPath_c::group_class const*) = 0;
|
||||
virtual void isRenderingFloor(int) = 0;
|
||||
virtual void getFirstRoomPointer() = 0;
|
||||
virtual void getNextRoomPointer() = 0;
|
||||
/* 8003CCC4 */ virtual void drawPath();
|
||||
/* 8003C94C */ virtual void rendering(dDrawPath_c::line_class const*);
|
||||
/* 8003CA40 */ virtual void rendering(dDrawPath_c::poly_class const*);
|
||||
/* 8003CC24 */ virtual void rendering(dDrawPath_c::room_class const*);
|
||||
};
|
||||
|
||||
class dDrawPathWithNormalPattern_c : public dDrawPath_c {
|
||||
public:
|
||||
/* 8002ACE0 */ virtual ~dDrawPathWithNormalPattern_c();
|
||||
};
|
||||
|
||||
class dRenderingMap_c : public dDrawPathWithNormalPattern_c {
|
||||
public:
|
||||
/* 8003CD38 */ void makeResTIMG(ResTIMG*, u16, u16, u8*, u8*, u16) const;
|
||||
/* 8003CDAC */ void renderingMap();
|
||||
|
||||
/* 8002AC74 */ virtual ~dRenderingMap_c();
|
||||
virtual void beforeDrawPath() = 0;
|
||||
virtual void afterDrawPath() = 0;
|
||||
virtual void preDrawPath() = 0;
|
||||
virtual void postDrawPath() = 0;
|
||||
virtual void isDrawPath() = 0;
|
||||
virtual void preRenderingMap() = 0;
|
||||
virtual void postRenderingMap() = 0;
|
||||
virtual void getBackColor() const = 0;
|
||||
};
|
||||
|
||||
class dRenderingFDAmap_c : public dRenderingMap_c {
|
||||
public:
|
||||
/* 8003CE78 */ void setTevSettingNonTextureDirectColor() const;
|
||||
/* 8003CF40 */ void setTevSettingIntensityTextureToCI() const;
|
||||
/* 8003D0AC */ void drawBack() const;
|
||||
/* 8003D3C0 */ void renderingDecoration(dDrawPath_c::line_class const*);
|
||||
|
||||
/* 8002ABF8 */ virtual ~dRenderingFDAmap_c();
|
||||
/* 8003D188 */ virtual void preRenderingMap();
|
||||
/* 8003D320 */ virtual void postRenderingMap();
|
||||
/* 8003D68C */ virtual void getDecoLineColor(int, int);
|
||||
/* 8003D6B8 */ virtual void getDecorationLineWidth(int);
|
||||
|
||||
private:
|
||||
/* 0x04 */ int field_0x4;
|
||||
/* 0x08 */ f32 field_0x8;
|
||||
/* 0x0C */ f32 field_0xc;
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
/* 0x14 */ f32 field_0x14;
|
||||
/* 0x18 */ f32 mCmPerTexel;
|
||||
/* 0x1C */ u16 field_0x1c;
|
||||
/* 0x1E */ u16 field_0x1e;
|
||||
/* 0x20 */ u16 field_0x20;
|
||||
/* 0x22 */ u16 field_0x22;
|
||||
}; // Size: 0x24
|
||||
|
||||
#endif /* D_MAP_D_MAP_PATH_H */
|
||||
|
||||
@@ -1,6 +1,142 @@
|
||||
#ifndef D_MAP_D_MAP_PATH_DMAP_H
|
||||
#define D_MAP_D_MAP_PATH_DMAP_H
|
||||
|
||||
#include "d/map/d_map_path.h"
|
||||
#include "d/d_stage.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct dTres_c {
|
||||
struct data_s {};
|
||||
|
||||
struct typeGroupData_c {};
|
||||
|
||||
struct list_class {};
|
||||
|
||||
/* 8009BCB4 */ void addData(dTres_c::list_class*, s8);
|
||||
/* 8009C360 */ void getFirstData(u8);
|
||||
/* 8009C3B4 */ void getNextData(dTres_c::typeGroupData_c const*);
|
||||
/* 8009C39C */ void getNextData(dTres_c::typeGroupData_c*);
|
||||
/* 8009C4B0 */ void getTypeToTypeGroupNo(u8);
|
||||
|
||||
static u8 mTypeGroupListAll[204 + 4 /* padding */];
|
||||
};
|
||||
|
||||
class dMpath_c {
|
||||
public:
|
||||
/* 8003F758 */ static u8 isExistMapPathData();
|
||||
/* 8003F760 */ void getTopBottomFloorNo(s8*, s8*);
|
||||
/* 8003F7E8 */ void createWork();
|
||||
/* 8003FA40 */ void setPointer(s8, void*, int);
|
||||
/* 8003F810 */ void setPointer(dDrawPath_c::room_class*, s8*, s8*);
|
||||
/* 8003FB70 */ void create();
|
||||
/* 8003FBD0 */ void reset();
|
||||
/* 8003FC70 */ void remove();
|
||||
|
||||
static u8 mLayerList[4];
|
||||
static f32 mMinX;
|
||||
static f32 mMaxX;
|
||||
static f32 mMinZ;
|
||||
static f32 mMaxZ;
|
||||
static f32 mAllCenterX;
|
||||
static f32 mAllCenterZ;
|
||||
static f32 mAllSizeX;
|
||||
static f32 mAllSizeZ;
|
||||
};
|
||||
|
||||
struct dMapInfo_n {
|
||||
/* 8003ECA0 */ void chkGetCompass();
|
||||
/* 8003ECD8 */ void chkGetMap();
|
||||
/* 8003ED10 */ void isVisitedRoom(int);
|
||||
/* 8003ED60 */ void correctionOriginPos(s8, Vec*);
|
||||
/* 8003EDC0 */ void offsetPlus(dStage_FileList2_dt_c const*, Vec*);
|
||||
/* 8003EDEC */ void rotAngle(dStage_FileList2_dt_c const*, Vec*);
|
||||
/* 8003EE5C */ static Vec getMapPlayerPos();
|
||||
/* 8003EF20 */ void getMapPlayerAngleY();
|
||||
/* 8003EF70 */ void getConstRestartIconPointer();
|
||||
/* 8003F02C */ void getMapRestartPos();
|
||||
/* 8003F0F8 */ void getMapRestartAngleY();
|
||||
/* 8003F19C */ void getRoomCenter(int, f32*, f32*);
|
||||
/* 8003F1F4 */ void getRoomMinMaxXZ(int, f32*, f32*, f32*, f32*);
|
||||
/* 8003F24C */ void getFloorParameter(f32, s8*, f32*, f32*, f32*, f32*);
|
||||
};
|
||||
|
||||
class renderingDAmap_c : public dRenderingFDAmap_c {
|
||||
public:
|
||||
/* 8003FCA4 */ void calcFloorNoForObjectByMapPathRend(f32, int) const;
|
||||
/* 8003FCC8 */ void init(u8*, u16, u16, u16, u16);
|
||||
/* 8003FD08 */ void entry(f32, f32, f32, int, s8);
|
||||
/* 8003FE6C */ void setSingleRoomSetting();
|
||||
/* 8003FFF4 */ void getFirstDrawRoomNo();
|
||||
/* 80040094 */ void getNextDrawRoomNo(int);
|
||||
|
||||
/* 8003FE18 */ virtual void draw();
|
||||
/* 8002B150 */ virtual ~renderingDAmap_c();
|
||||
/* 8003FD9C */ virtual void isSwitch(dDrawPath_c::group_class const*);
|
||||
/* 8003FE54 */ virtual void isRenderingFloor(int);
|
||||
/* 80040134 */ virtual void getFirstRoomPointer();
|
||||
/* 800401E8 */ virtual void getNextRoomPointer();
|
||||
/* 8003FF14 */ virtual void preDrawPath();
|
||||
/* 8003FFC4 */ virtual void postDrawPath();
|
||||
/* 800402C0 */ virtual void isDrawPath();
|
||||
/* 8003FE4C */ virtual void getBackColor() const;
|
||||
/* 800402E0 */ virtual bool getFirstDrawLayerNo();
|
||||
/* 800402E8 */ virtual void getNextDrawLayerNo(int);
|
||||
/* 800409E0 */ virtual void isDrawIconSingle(dTres_c::data_s const*, int, int, bool, bool,
|
||||
Vec const*) const;
|
||||
/* 80040AE4 */ virtual void getIconGroupNumber(u8) const;
|
||||
virtual void hasMap() const = 0;
|
||||
virtual void isRendAllRoom() const = 0;
|
||||
virtual void isRendDoor() const = 0;
|
||||
virtual bool isCheckFloor() const = 0;
|
||||
virtual void isDrawIconSingle2(dTres_c::data_s const*, bool, bool, int) const = 0;
|
||||
/* 8003FFEC */ virtual void getRoomNoSingle();
|
||||
/* 8003FE70 */ virtual void isDrawRoom(int, int) const;
|
||||
/* 800409B4 */ virtual void isDrawRoomIcon(int, int) const;
|
||||
|
||||
bool isDraw() const {
|
||||
return mDraw;
|
||||
}
|
||||
|
||||
private:
|
||||
/* 0x24 */ int field_0x24;
|
||||
/* 0x28 */ int field_0x28;
|
||||
/* 0x2C */ int mRoomNoSingle;
|
||||
/* 0x30 */ u8 field_0x30;
|
||||
/* 0x31 */ bool mDraw;
|
||||
}; // Size: 0x34
|
||||
|
||||
class stage_tgsc_data_class;
|
||||
|
||||
class renderingPlusDoor_c : public renderingDAmap_c {
|
||||
public:
|
||||
/* 80040574 */ void drawDoor1();
|
||||
/* 800405B8 */ void drawDoor2();
|
||||
/* 800405FC */ void drawDoorCommon(stage_tgsc_data_class const*, int, bool);
|
||||
/* 80040710 */ void checkDispDoorS(int, int, f32);
|
||||
/* 80040838 */ void drawNormalDoorS(stage_tgsc_data_class const*, int, int, bool);
|
||||
|
||||
/* 8002B0B4 */ virtual ~renderingPlusDoor_c();
|
||||
/* 8004145C */ virtual void beforeDrawPath();
|
||||
/* 80040518 */ virtual void afterDrawPath();
|
||||
virtual bool isRendRestart() const = 0;
|
||||
virtual bool isRendCursor() const = 0;
|
||||
virtual bool isRendIcon() const = 0;
|
||||
};
|
||||
|
||||
class renderingPlusDoorAndCursor_c : public renderingPlusDoor_c {
|
||||
public:
|
||||
/* 80040B00 */ void drawTreasure();
|
||||
/* 80040E84 */ void drawTreasureAfterPlayer();
|
||||
/* 80041208 */ void drawIconSingle(Vec const&, f32, f32);
|
||||
/* 800412C0 */ void drawCursor(Vec const&, s16, int, f32);
|
||||
|
||||
/* 8002B008 */ virtual ~renderingPlusDoorAndCursor_c();
|
||||
/* 800402FC */ virtual void afterDrawPath();
|
||||
/* 80040ADC */ virtual void getIconPosition(dTres_c::typeGroupData_c*) const;
|
||||
/* 80040A94 */ virtual void getFirstData(u8);
|
||||
/* 80040AB8 */ virtual void getNextData(dTres_c::typeGroupData_c*);
|
||||
virtual void getPlayerCursorSize() = 0;
|
||||
virtual void getRestartCursorSize() = 0;
|
||||
};
|
||||
|
||||
#endif /* D_MAP_D_MAP_PATH_DMAP_H */
|
||||
|
||||
Reference in New Issue
Block a user