-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuff.hpp
28 lines (24 loc) · 810 Bytes
/
buff.hpp
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
#pragma once
#include <cstdint>
#include <string>
#include "corestats.hpp"
#include "types.hpp"
struct buff {
explicit buff(std::string name, bool isDebuff = false, std::uint16_t dur = 2u,
stattype str = 0, stattype intel = 0, stattype agi = 0,
stattype arm = 0, stattype elres = 0)
: name(std::move(name)),
isDebuff(isDebuff),
duration(dur),
buffedStats(CoreStats(str, intel, agi, arm, elres)) {}
explicit buff(std::string name, bool isDebuff = false, std::uint16_t dur = 2u,
CoreStats stats = CoreStats(0, 0, 0, 0, 0))
: name(std::move(name)),
isDebuff(isDebuff),
duration(dur),
buffedStats(stats) {}
std::string name;
bool isDebuff;
std::uint16_t duration;
CoreStats buffedStats;
};