mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 17:17:13 +00:00
28 lines
620 B
C++
28 lines
620 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::string name;
|
|
ObjectiveCriteria* criteria;
|
|
std::string displayName;
|
|
|
|
public:
|
|
Objective(Scoreboard* scoreboard, const std::string& name,
|
|
ObjectiveCriteria* criteria);
|
|
|
|
Scoreboard* getScoreboard();
|
|
std::string getName();
|
|
ObjectiveCriteria* getCriteria();
|
|
std::string getDisplayName();
|
|
void setDisplayName(const std::string& name);
|
|
}; |