the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Scoreboard;
4class Objective;
5
6class Score
7{
8public:
9 // 4J Not converted
10#if 0
11 static final Comparator<Score> SCORE_COMPARATOR = new Comparator<Score>() {
12 @Override
13 public int compare(Score o1, Score o2) {
14 if (o1.getScore() > o2.getScore()) {
15 return 1;
16 } else if (o1.getScore() < o2.getScore()) {
17 return -1;
18 } else {
19 return 0;
20 }
21 }
22 };
23#endif
24
25private:
26 Scoreboard *scoreboard;
27 Objective *objective;
28 wstring owner;
29 int count;
30
31public:
32 Score(Scoreboard *scoreboard, Objective *objective, const wstring &owner);
33
34 void add(int count);
35 void remove(int count);
36 void increment();
37 void decrement();
38 int getScore();
39 void setScore(int score);
40 Objective *getObjective();
41 wstring getOwner();
42 Scoreboard *getScoreboard();
43 void updateFor(vector<shared_ptr<Player> > *players);
44};