the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "Screen.h"
3#include "..\Minecraft.World\net.minecraft.stats.h"
4class StatsCounter;
5
6class AchievementScreen : public Screen
7{
8private:
9 static const int BIGMAP_X = 16;
10 static const int BIGMAP_Y = 17;
11 static const int BIGMAP_WIDTH = 224;
12 static const int BIGMAP_HEIGHT = 155;
13
14 // number of pixels per achievement
15 static const int ACHIEVEMENT_COORD_SCALE = 24;
16 static const int EDGE_VALUE_X = Achievements::ACHIEVEMENT_WIDTH_POSITION * ACHIEVEMENT_COORD_SCALE;
17 static const int EDGE_VALUE_Y = Achievements::ACHIEVEMENT_HEIGHT_POSITION * ACHIEVEMENT_COORD_SCALE;
18
19 int xMin;
20 int yMin;
21 int xMax;
22 int yMax;
23
24 static const int MAX_BG_TILE_Y = (EDGE_VALUE_Y * 2 - 1) / 16;
25
26protected:
27 int imageWidth;
28 int imageHeight;
29 int xLastScroll;
30 int yLastScroll;
31
32protected:
33 double xScrollO, yScrollO;
34 double xScrollP, yScrollP;
35 double xScrollTarget, yScrollTarget;
36
37private:
38 int scrolling;
39 StatsCounter *statsCounter;
40
41public:
42 using Screen::keyPressed;
43
44 AchievementScreen(StatsCounter *statsCounter);
45 virtual void init();
46protected:
47 virtual void buttonClicked(Button *button);
48 virtual void keyPressed(char eventCharacter, int eventKey);
49public:
50 virtual void render(int mouseX, int mouseY, float a);
51 virtual void tick();
52protected:
53 virtual void renderLabels();
54 virtual void renderBg(int xm, int ym, float a);
55public:
56 virtual bool isPauseScreen();
57};