blob: 243713d44e7e7d3be64becf5f92b3d534df88fbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "stdafx.h"
#include "net.minecraft.world.scores.h"
#include "Objective.h"
Objective::Objective(Scoreboard *scoreboard, const wstring &name, ObjectiveCriteria *criteria)
{
this->scoreboard = scoreboard;
this->name = name;
this->criteria = criteria;
displayName = name;
}
Scoreboard *Objective::getScoreboard()
{
return scoreboard;
}
wstring Objective::getName()
{
return name;
}
ObjectiveCriteria *Objective::getCriteria()
{
return criteria;
}
wstring Objective::getDisplayName()
{
return displayName;
}
void Objective::setDisplayName(const wstring &name)
{
displayName = name;
scoreboard->onObjectiveChanged(this);
}
|