2021-09-13 12:10:06 -04:00
|
|
|
#include "blockinfo.h"
|
2021-09-17 10:03:32 -04:00
|
|
|
|
|
|
|
BlockInfo::BlockInfo(BlockType type, const std::string& name): m_name(name), m_type(type) { m_durability = 0; }
|
|
|
|
|
|
|
|
BlockInfo::~BlockInfo() { }
|
|
|
|
|
|
|
|
BlockType BlockInfo::GetType() const { return m_type; }
|
|
|
|
|
|
|
|
void BlockInfo::SetDurability(int durability) { m_durability = durability; }
|
|
|
|
|
|
|
|
int BlockInfo::GetDurability() const { return m_durability; }
|
|
|
|
|
|
|
|
void BlockInfo::Show() const { std::cout << "Name: " << m_name << "; Type " << m_type << "; Durability: " << m_durability << std::endl; }
|