summaryrefslogtreecommitdiff
path: root/src/koopatlas/starcoin.h
blob: 500ffa6a3fbdb803719405c5cb50bb80d40488a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __KOOPATLAS_HUD_H
#define __KOOPATLAS_HUD_H

#include "koopatlas/core.h"

class dWMStarCoin : public dBase_c {
	public:
		dWMStarCoin();

		int onCreate();
		int onDelete();
		int onExecute();
		int onDraw();
		void specialDraw1();

		mHeapAllocator_c allocator;
		nw4r::g3d::ResFile res;
		m3d::mdl_c shopkeep;
		mMtx matrix;

		bool layoutLoaded;
		m2d::EmbedLayout_c layout;

		bool isHidden;
		s16 rotation;

		void LoadCoinsForWorld(int world);
		void setCoin(bool On, int coin, int slot);
		void setText(const char *str, const char *name);
		void setWorldName(int world);

		static dWMStarCoin *build();
		static dWMStarCoin *instance;

	private:
		bool isPointBarShown;
};

#endif