Deukhoofd a8730d983f
All checks were successful
continuous-integration/drone/push Build is passing
Used ClangFormat style guide I'm happy with.
2019-11-28 12:55:22 +01:00

29 lines
759 B
C++

#ifndef CREATURELIB_ITEM_HPP
#define CREATURELIB_ITEM_HPP
#include <string>
#include <unordered_set>
#include "../../GenericTemplates.cpp"
#include "BattleItemCategory.hpp"
#include "ItemCategory.hpp"
namespace CreatureLib::Library {
class Item {
GetProperty(std::string, Name);
GetProperty(ItemCategory, Category);
GetProperty(BattleItemCategory, BattleCategory);
GetProperty(int32_t, Price);
private:
std::unordered_set<std::string> _flags;
public:
Item(std::string name, ItemCategory category, BattleItemCategory battleCategory, int32_t price,
std::unordered_set<std::string> flags);
bool HasFlag(const std::string& flag) const;
};
}
#endif // CREATURELIB_ITEM_HPP