summaryrefslogtreecommitdiff
path: root/src/koopatlas/shop.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-25 04:59:11 +0200
committerTreeki <treeki@gmail.com>2012-10-25 04:59:11 +0200
commit0bee9e3ae3bd5a9f4a9f0ea8a4d04955a90798fa (patch)
tree999ea89b9eb357fbd4a0b7d8acd6c71f2a82c8f6 /src/koopatlas/shop.h
parent47795a5f0eee896df557e4e3481068e510fe51fb (diff)
downloadkamek-0bee9e3ae3bd5a9f4a9f0ea8a4d04955a90798fa.tar.gz
kamek-0bee9e3ae3bd5a9f4a9f0ea8a4d04955a90798fa.zip
refactoring, API fixes and shop mostly finished
Diffstat (limited to '')
-rw-r--r--src/koopatlas/shop.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/koopatlas/shop.h b/src/koopatlas/shop.h
index 719a087..304154a 100644
--- a/src/koopatlas/shop.h
+++ b/src/koopatlas/shop.h
@@ -2,8 +2,9 @@
#define __KOOPATLAS_SHOP_H
#include "koopatlas/core.h"
+#include "texmapcolouriser.h"
-class dWMShop_c : public dBase_c {
+class dWMShop_c : public dActor_c {
public:
static dWMShop_c *build();
static dWMShop_c *instance;
@@ -56,6 +57,11 @@ class dWMShop_c : public dBase_c {
*CoinCount, *CoinCountShadow,
*BackText, *BuyText;
+ nw4r::lyt::Picture
+ *BtnLeft[6], *BtnMid[6], *BtnRight[6];
+
+ dTexMapColouriser_c leftCol, midCol, rightCol;
+
class ShopModel_c {
public:
mHeapAllocator_c allocator;
@@ -64,7 +70,7 @@ class dWMShop_c : public dBase_c {
m3d::mdl_c model;
m3d::anmChr_c animation;
- float x, y;
+ float x, y, scaleFactor;
void setupItem(float x, float y, ItemTypes type);
void setupLakitu(int id);
@@ -78,6 +84,7 @@ class dWMShop_c : public dBase_c {
void show(int shopNumber);
+ void loadInfo();
void loadModels();
void deleteModels();