blob: a06132a3f5766fa40ffc226caaaa64248b397565 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#include "stdafx.h"
#include "BlockDestructionProgress.h"
BlockDestructionProgress::BlockDestructionProgress(int id, int x, int y, int z)
{
this->id = id;
this->x = x;
this->y = y;
this->z = z;
progress = 0;
updatedRenderTick = 0;
}
int BlockDestructionProgress::getId()
{
return id;
}
int BlockDestructionProgress::getX()
{
return x;
}
int BlockDestructionProgress::getY()
{
return y;
}
int BlockDestructionProgress::getZ()
{
return z;
}
void BlockDestructionProgress::setProgress(int progress)
{
if (progress > 10)
{
progress = 10;
}
this->progress = progress;
}
int BlockDestructionProgress::getProgress()
{
return progress;
}
void BlockDestructionProgress::updateTick(int tick)
{
this->updatedRenderTick = tick;
}
int BlockDestructionProgress::getUpdatedRenderTick()
{
return updatedRenderTick;
}
|