-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITEMS.cpp
17 lines (14 loc) · 859 Bytes
/
ITEMS.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "stdafx.h"
#include "ITEMS.h"
ITEMS<char*, char*, int, int, int, int, int>::~ITEMS() { }
void ITEMS<char*, char*, int, int, int, int, int>::displayItem() {
std::cout << "-----------------------" << std::endl;
std::cout << " " << this->itemName << std::endl;
std::cout << " " << this->itemSlot << std::endl;
std::cout << "-----------------------" << std::endl;
if (this->minDamage > 0 && this->maxDamage > 0) { std::cout << "Weapon Damage : " << this->minDamage << " - " << this->maxDamage << std::endl; }
if (this->armorRating > 0) { std::cout << "Armor Rating : " << this->armorRating << std::endl; }
if (this->strength > 0) { std::cout << "Strength : " << this->strength << std::endl; }
if (this->vitality > 0) { std::cout << "Vitality : " << this->vitality << std::endl; }
std::cout << std::endl;
}