-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppliedBuff.h
37 lines (34 loc) · 1.08 KB
/
AppliedBuff.h
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
#ifndef APPLIEDBUFF_H
#define APPLIEDBUFF_H
#include "Buff.h"
class AppliedBuff
{
Buff *buff = nullptr;
float appliedTimestamp = 0.0f;
float capturedDuration = 0.0f;
int32_t lastTickedCount = 0;
float lastTickedTimestamp = 0.0f;
int32_t tickCount = 0;
Combatant *appliedBy = nullptr;
public:
AppliedBuff();
AppliedBuff(Buff *buff);
Buff *getBuff() const;
void setBuff(Buff *value);
float getAppliedTimestamp() const;
void setAppliedTimestamp(float value);
float getCapturedDuration() const;
void setCapturedDuration(float value);
int32_t getLastTickedCount() const;
void setLastTickedCount(const int32_t &value);
float getLastTickedTimestamp() const;
void setLastTickedTimestamp(float value);
int32_t getTickCount() const;
void setTickCount(const int32_t &value);
bool isBuffExpired(float timestamp);
bool isTickTimerExpired(Combatant *Cbt, float timestamp);
void triggerTickTimer(float timestamp);
Combatant *getAppliedBy() const;
void setAppliedBy(Combatant *value);
};
#endif // APPLIEDBUFF_H