From 64bbf86b623a3cca2eaf9009d7acdcde067592e3 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Wed, 3 May 2023 19:37:26 +0100 Subject: Moved code to src/openvic2 --- src/openvic2/Good.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/openvic2/Good.hpp (limited to 'src/openvic2/Good.hpp') diff --git a/src/openvic2/Good.hpp b/src/openvic2/Good.hpp new file mode 100644 index 0000000..378bbc4 --- /dev/null +++ b/src/openvic2/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