mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 20:08:13 +05:00
26 lines
527 B
C++
26 lines
527 B
C++
#pragma once
|
|
|
|
class Scoreboard;
|
|
class ObjectiveCriteria;
|
|
|
|
class Objective
|
|
{
|
|
public:
|
|
static const int MAX_NAME_LENGTH = 16;
|
|
static const int MAX_DISPLAY_NAME_LENGTH = 32;
|
|
|
|
private:
|
|
Scoreboard *scoreboard;
|
|
wstring name;
|
|
ObjectiveCriteria *criteria;
|
|
wstring displayName;
|
|
|
|
public:
|
|
Objective(Scoreboard *scoreboard, const wstring &name, ObjectiveCriteria *criteria);
|
|
|
|
Scoreboard *getScoreboard();
|
|
wstring getName();
|
|
ObjectiveCriteria *getCriteria();
|
|
wstring getDisplayName();
|
|
void setDisplayName(const wstring &name);
|
|
}; |