aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Achievement.h
blob: 08ec5df926763b8b042cfe1c32d297ef04bc0c67 (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
#pragma once
using namespace std;

#include "Stat.h"

class DescFormatter;

class Achievement : public Stat
{
public:
	const int x, y;
	Achievement *reqs;

private: 
	const wstring desc;
    DescFormatter *descFormatter;

public:
	const shared_ptr<ItemInstance> icon;

private:
    bool isGoldenVar;
	void _init();

public:
	Achievement(int id, const wstring& name, int x, int y, Item *icon, Achievement *reqs);
    Achievement(int id, const wstring& name, int x, int y, Tile *icon, Achievement *reqs);
    Achievement(int id, const wstring& name, int x, int y, shared_ptr<ItemInstance> icon, Achievement *reqs);

	Achievement *setAwardLocallyOnly();
	Achievement *setGolden();
	Achievement *postConstruct();
	bool isAchievement();
	wstring getDescription();
	Achievement *setDescFormatter(DescFormatter *descFormatter);
	bool isGolden();
	int getAchievementID();
};