-
Notifications
You must be signed in to change notification settings - Fork 1
/
Armor.h
41 lines (33 loc) · 924 Bytes
/
Armor.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
38
39
40
41
#ifndef _Armor
#define _Armor
#include "Item.h"
#include <string>
#include <ostream>
class Armor : public Item
{
public:
//Constructor
Armor(std::string sName, int iArmorValue);
//Copy constructor
Armor(const Armor& someArmor);
//Getters
virtual std::string getSlot() const;
virtual std::string getType() const;
virtual int getArmorValue() const; //is this defense bonus?
//consider renaming
//Setters
virtual void setSlot(std::string sSlot);
virtual void setType(std::string sType);
virtual void setArmorValue(int iArmorValue);
//Other methods
virtual void dumpObject();
virtual void dumpObjectData();
virtual void writeFragment(std::ostream & output, int iTabs);
virtual void writeDataAsFragment(std::ostream & output, int iTabs);
virtual void setElementData(std::string sElementName, std::string sValue);
private:
std::string m_sSlot;
std::string m_sType;
int m_iArmorValue;
};
#endif