aboutsummaryrefslogtreecommitdiff
path: root/Good.hpp
diff options
context:
space:
mode:
author ClarkeCode <clarke.john.robert@gmail.com>2023-05-01 02:48:35 +0200
committer ClarkeCode <clarke.john.robert@gmail.com>2023-05-01 02:48:35 +0200
commitc92481448159d3a363d6a99b3025bd2358c3dab6 (patch)
tree3ee57808029036a7edab750f4454aeb6c50f3df3 /Good.hpp
Initial commit
Diffstat (limited to 'Good.hpp')
-rw-r--r--Good.hpp21
1 files changed, 21 insertions, 0 deletions
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) {};
+ };
+}