Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/Kaneshige/Course/CrsArea.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class CrsArea
void searchShadow(const JGeometry::TVec3f &p1) { search(0, p1); }
void searchCamera(const JGeometry::TVec3f &p1) { search(1, p1); }
void searchRoof(const JGeometry::TVec3f &p1) { search(2, p1); }
void searchInvValley(const JGeometry::TVec3f &p1) { search(3, p1); }
void searchLight(const JGeometry::TVec3f &p1) { search(7, p1); }

bool isInside() const { return mArea != nullptr; }
Expand Down
3 changes: 3 additions & 0 deletions include/Kaneshige/KartChecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ class KartChecker

void setBombEvent(EBombEvent, ItemObj *);

void setBEHitBomb(ItemObj *itemObj) { setBombEvent(EVENT_1, itemObj); }
void setBEJugem() { setBombEvent(EVENT_3, nullptr); }

void beginWarp(JugemPoint *point)
{
if (mWarpState == 0)
Expand Down
7 changes: 7 additions & 0 deletions include/Kaneshige/KartDrawer.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class KartDrawer
void lodOff() { mEnableLOD = false; }
u8 getGhostAlpha() const { return mGhostAlpha; }

void flashOff() { mFlashState = 0; }
void flashOn() {
if (mFlashState != 0) return;
mFlashState = 1;
mFlashTime = 0;
}

private:
static s16 sFlashInterval; // 0x80414648
static u8 sGhostA; // 0x8041464a
Expand Down
1 change: 1 addition & 0 deletions include/Sato/ItemObjMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ class ItemObjMgr : public SysDbUsrPage
void setMaxItemMoveNum(const u8 &);
void entryMiniGameList(ItemObj *);
void tstEnableDrawGhost(bool, const JSUListIterator<ItemObj> &);
KartHitList* getKartHitList(int);

static void createMgr() { gItemMgr = new ItemObjMgr(); }
static ItemObjMgr *getItemObjMgr() { return gItemMgr; }
Expand Down
1 change: 1 addition & 0 deletions include/Sato/ItemTurtle.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class ItemFireBall : public ItemGTurtle
void initEffect();
void initHaveEffect();
virtual ~ItemFireBall() {} // 0x80249c9c
bool IsEfctTypeRed() const { return getItemColorID() == 1; }

JPABaseEmitter *_2ec[3];
JPABaseEmitter *_2f8[2];
Expand Down
10 changes: 8 additions & 2 deletions include/Sato/JPEffectPerformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ class JPEffectPerformer
enum EffectType
{
// TODO
Effect_Unknown0 = 0x0,
Effect_Unknown1 = 0x1,
Effect_Unknown2 = 0x2,
Effect_Unknown4 = 0x4, // Something collision related...?
Effect_Unknown5 = 0x5, // Sound of some material...?
Effect_Unknown6 = 0x6, // Something reflection related...?
Effect_UnknownD = 0xD,
Effect_UnknownF = 0xF,
Effect_Unknown12 = 0x12, // Star react.
Effect_Burn = 0x13,
Effect_Star = 0x1c
Effect_Star = 0x1c,
Effect_Fireball = 0x24,
};

void init(); // 80266010
Expand Down Expand Up @@ -102,4 +108,4 @@ class JPEffectPerformer
// void JPStartFootSmokeEmitterCallBack::draw(JPABaseEmitter *);
// void PermissionCounterObserver::reset();
// void PermissionCounterObserver::calc();
#endif // JPEFFECTPERFORMER_H
#endif // JPEFFECTPERFORMER_H
16 changes: 16 additions & 0 deletions include/Shiraiwa/TKartThrower.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef TKART_THROWER_H
#define TKART_THROWER_H

#include <JSystem/JGeometry.h>
#include "JSystem/JGeometry/Vec.h"
#include "Shiraiwa/Objects/MapObjHioNode.h"

class TKartThrower : public TMapObjHioNode {
public:
virtual ~TKartThrower() {}

virtual void getThrowDir(JGeometry::TVec3f* dst, s16);
virtual s32 getThrowPow();
};

#endif
12 changes: 11 additions & 1 deletion include/Yamamoto/KartCrash.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#define KARTCRASH_H

#include "Sato/ItemObj.h"
#include "Sato/J3DEffectMgr.h"
#include "Shiraiwa/TKartThrower.h"

class KartBody;

class KartCrash
{ // Autogenerated
Expand Down Expand Up @@ -38,7 +42,13 @@ class KartCrash
// Inline/Unused
// void MakeRollCrash();
private:
u8 _0[0x14];
KartBody* mBody;
TKartThrower* _4;
J3DEffectObj* _8;
u8 _C;
u8 _D;
u16 _E;
u16 mMatchlessTimer;

}; // 0x14

Expand Down
2 changes: 1 addition & 1 deletion include/Yamamoto/KartDamage.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class KartDamage

}; // 0xc

#endif // KARTDAMAGE_H
#endif // KARTDAMAGE_H
Loading
Loading