mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 21:53:37 +00:00
26 lines
607 B
C++
26 lines
607 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;
|
|
std::wstring name;
|
|
ObjectiveCriteria* criteria;
|
|
std::wstring displayName;
|
|
|
|
public:
|
|
Objective(Scoreboard* scoreboard, const std::wstring& name,
|
|
ObjectiveCriteria* criteria);
|
|
|
|
Scoreboard* getScoreboard();
|
|
std::wstring getName();
|
|
ObjectiveCriteria* getCriteria();
|
|
std::wstring getDisplayName();
|
|
void setDisplayName(const std::wstring& name);
|
|
}; |