Compare commits
3 commits
79d575da10
...
04f876dc4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
04f876dc4f |
|||
|
7c6a529e14 |
|||
|
3e37df5fc2 |
2 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ add_executable(UnitTest
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(Catch2 UnitTest PROPERTIES
|
set_target_properties(Catch2 UnitTest PROPERTIES
|
||||||
CXX_STANDARD 17
|
CXX_STANDARD 23
|
||||||
CXX_STANDARD_REQUIRED ON
|
CXX_STANDARD_REQUIRED ON
|
||||||
CXX_EXTENSIONS OFF
|
CXX_EXTENSIONS OFF
|
||||||
INTERPROCEDURAL_OPTIMIZATION_RELEASE ON
|
INTERPROCEDURAL_OPTIMIZATION_RELEASE ON
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ namespace character {
|
||||||
|
|
||||||
std::uint32_t Weapons::add_damage() const noexcept { return type == weapons::Morgenstern ? 1 : 0; }
|
std::uint32_t Weapons::add_damage() const noexcept { return type == weapons::Morgenstern ? 1 : 0; }
|
||||||
|
|
||||||
std::int32_t Weapons::add_materiel(const characteristic::characType &inType) const noexcept {
|
std::int32_t Weapons::add_materiel(const characType &inType) const noexcept {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case weapons::Sword:
|
case weapons::Sword:
|
||||||
if (inType == characType::Habilete) {
|
if (inType == characType::Habilete) {
|
||||||
|
|
@ -94,7 +94,7 @@ namespace character {
|
||||||
|
|
||||||
std::uint32_t Equipments::add_damage() const noexcept { return 0; }
|
std::uint32_t Equipments::add_damage() const noexcept { return 0; }
|
||||||
|
|
||||||
std::int32_t Equipments::add_materiel(const characteristic::characType &inType) const noexcept {
|
std::int32_t Equipments::add_materiel(const characType &inType) const noexcept {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case equipments::Chainmail:
|
case equipments::Chainmail:
|
||||||
if (inType == characType::Habilete ||
|
if (inType == characType::Habilete ||
|
||||||
|
|
@ -130,7 +130,7 @@ namespace character {
|
||||||
|
|
||||||
std::uint32_t Tools::add_damage() const noexcept { return 0; }
|
std::uint32_t Tools::add_damage() const noexcept { return 0; }
|
||||||
|
|
||||||
std::int32_t Tools::add_materiel(const characteristic::characType &inType) const noexcept {
|
std::int32_t Tools::add_materiel(const characType &inType) const noexcept {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case tools::Fourche:
|
case tools::Fourche:
|
||||||
switch (inType) {
|
switch (inType) {
|
||||||
|
|
@ -166,4 +166,4 @@ namespace character {
|
||||||
return sackOfGrain;
|
return sackOfGrain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue