aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Good.hpp
blob: 7953c51191fd489dc5572b41f61dc814f563784e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <string>
#include "Types.hpp"

namespace OpenVic2 {
   class Good : HasIdentifier {
      public:
         using price_t = float;

         std::string category;
         price_t cost;
         std::string colour;
         bool isAvailable;
         bool isTradable;
         bool isMoney;
         bool hasOverseasPenalty;

         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) {};
   };
}