SQCSimulator2023/SQCSim2021/blockinfo.h
2021-09-17 10:03:32 -04:00

25 lines
375 B
C++

#ifndef BLOCKINFO_H__
#define BLOCKINFO_H__
#include "define.h"
#include <iostream>
class BlockInfo {
public:
BlockInfo(BlockType type, const std::string& name);
~BlockInfo();
BlockType GetType() const;
void SetDurability(int durability);
int GetDurability() const;
void Show() const;
private:
std::string m_name;
int m_durability;
BlockType m_type;
};
#endif