MCPcopy Create free account
hub / github.com/doldecomp/mkdd / GeographyObj

Method GeographyObj

src/Sato/GeographyObj.cpp:11–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "Osako/shadowModel.h"
10
11GeographyObj::GeographyObj(const CrsData::SObject &data) : mModel(1), mObjLink(this)
12{
13 mAnmCtrl = nullptr;
14 mObjData = &data;
15 mShadowMdl = nullptr;
16 mKind = data.objID;
17 mObjFlag = 0;
18 mBounds = nullptr;
19 mColObjPos = nullptr;
20 mBoundsNum = 0;
21 mDefaultBound = 0;
22 mRotMtx.mMtx[0][3] = 0.0f;
23 mRotMtx.mMtx[1][3] = 0.0f;
24 mRotMtx.mMtx[2][3] = 0.0f;
25 mSoundMgr = nullptr;
26 mCheckKartHitFlags = 0;
27
28 if (data.colFlag == 0) { setObjFlagNoCollision(); }
29
30 resetObject();
31 mReaction.init();
32 setDefaultItemReaction();
33 setObjFlagLODBias();
34}
35
36GeographyObj::GeographyObj(u32 kind) : mModel(1), mObjLink(this)
37{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected