From c92481448159d3a363d6a99b3025bd2358c3dab6 Mon Sep 17 00:00:00 2001 From: ClarkeCode Date: Sun, 30 Apr 2023 20:48:35 -0400 Subject: Initial commit --- Good.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Good.hpp (limited to 'Good.hpp') diff --git a/Good.hpp b/Good.hpp new file mode 100644 index 0000000..378bbc4 --- /dev/null +++ b/Good.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "Types.hpp" + +namespace OpenVic2 { + class Good : HasIdentifier { + public: + std::string category; + price_t cost; + std::string colour; + bool isAvailable; + bool isTradable; + bool isMoney; + bool hasOverseasPenalty; + + Good(Good&&) = default; + Good(std::string const& identifier,std::string const& category, price_t cost, std::string const& colour, + bool isAvailable, bool isTradable, bool isMoney, bool hasOverseasPenalty) : HasIdentifier(identifier), + category(category), cost(cost), colour(colour), isAvailable(isAvailable), isMoney(isMoney), hasOverseasPenalty(hasOverseasPenalty) {}; + }; +} -- cgit v1.2.3-56-ga3b1