#ifndef D_D_SIMPLE_MODEL_H
#define D_D_SIMPLE_MODEL_H

#include "JSystem/J3DGraphAnimator/J3DModel.h"

class JKRSolidHeap;

class modelList_c {
public:
    void init() {
        mpModel = NULL;
        field_0x4 = NULL;
    }

    void set(J3DModel* model) { mpModel = model; }

    /* 0x0 */ J3DModel* mpModel;
    /* 0x4 */ modelList_c* field_0x4;
};

class diff_model_c {
public:
    diff_model_c();
    BOOL create(J3DModelData*, int, u8);
    J3DModelData* getModelData();
    void remove(int);
    void draw();
    void init();
    BOOL isSame(J3DModelData*, int);
    s32 getRoomNo();
    void insert(modelList_c*);

    J3DModel* getModel() { return mpModel; }

#if TARGET_PC
    void setIdx(u8 idx) { this->idx = idx; }
#endif

private:
    /* 0x00 */ JKRSolidHeap* mpHeap;
    /* 0x04 */ J3DModel* mpModel;
    /* 0x08 */ int mCreateNum;
    /* 0x0C */ modelList_c* mpList;
    /* 0x10 */ u8 mDrawBG;
    /* 0x11 */ s8 mRoomNo;
    /* 0x12 */ u8 field_0x12;
#if TARGET_PC
    u8 idx;
#endif
};  // Size: 0x14

class dSmplMdl_draw_c {
public:
    dSmplMdl_draw_c();
    void draw();
    void entry(J3DModel*, int);
    BOOL addModel(J3DModelData*, int, u8);
    int removeModel(J3DModelData*, int);

    virtual ~dSmplMdl_draw_c();

private:
    /* 0x04 */ diff_model_c mModel[8];
    /* 0xA4 */ int mListCount;
    /* 0xA8 */ modelList_c mList[500];
};  // Size: 0x1048

#endif /* D_D_SIMPLE_MODEL_H */
