diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-07-24 03:29:59 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-07-24 03:29:59 -0500 |
commit | 0b935b5b0a4dfba5621d5f925ca088007811fc49 (patch) | |
tree | 888ea20cbf2707b1588553a010867e9473994151 /src/koopatlas/shop.h | |
parent | 86cef888c196c138f71388aa9b701ac09eb95d14 (diff) | |
download | kamek-0b935b5b0a4dfba5621d5f925ca088007811fc49.tar.gz kamek-0b935b5b0a4dfba5621d5f925ca088007811fc49.zip |
added in all the wm shop junk - can not get models to render overtop, though
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/shop.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/koopatlas/shop.h b/src/koopatlas/shop.h new file mode 100644 index 0000000..64e4453 --- /dev/null +++ b/src/koopatlas/shop.h @@ -0,0 +1,60 @@ +#ifndef __KOOPATLAS_SHOP_H +#define __KOOPATLAS_SHOP_H + +#include "koopatlas/core.h" + +extern "C" void *SoundRelatedClass; +extern "C" void *MapSoundPlayer(void *SoundClass, int soundID, int unk); + +class dShopItem; + +class dWMShop_c : public dBase_c { + public: + dWMShop_c(); + + int onCreate(); + int onDelete(); + int onExecute(); + int onDraw(); + + bool layoutLoaded; + m2d::EmbedLayout_c layout; + + mHeapAllocator_c allocator; + nw4r::g3d::ResFile res; + m3d::mdl_c shopkeep; + m3d::anmChr_c ska; + mMtx matrix; + + char currentItem; + bool isHidden; + int world; + + dShopItem *itemA; + dShopItem *itemB; + dShopItem *itemC; + dShopItem *itemD; + + dShopItem *itemEA; + dShopItem *itemEB; + dShopItem *itemEC; + + dShopItem *itemFA; + dShopItem *itemFB; + dShopItem *itemFC; + dShopItem *itemFD; + dShopItem *itemFE; + + + void LoadShopForWorld(int world); + void CloseUpShop(); + void BuyItem(int item); + + void changeItem(int last, int current); + + static dWMShop_c *build(); + static dWMShop_c *instance; +}; + +#endif + |