mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-19 06:57:05 +00:00
28 lines
626 B
C++
28 lines
626 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
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);
|
|
}; |