aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/trading/BuyUpToOrder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/economy/trading/BuyUpToOrder.cpp')
-rw-r--r--src/openvic-simulation/economy/trading/BuyUpToOrder.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/openvic-simulation/economy/trading/BuyUpToOrder.cpp b/src/openvic-simulation/economy/trading/BuyUpToOrder.cpp
new file mode 100644
index 0000000..6994e18
--- /dev/null
+++ b/src/openvic-simulation/economy/trading/BuyUpToOrder.cpp
@@ -0,0 +1,14 @@
+#include "BuyUpToOrder.hpp"
+
+using namespace OpenVic;
+
+BuyUpToOrder::BuyUpToOrder(
+ GoodDefinition const& new_good,
+ const fixed_point_t new_max_quantity,
+ const fixed_point_t new_money_to_spend,
+ const std::function<void(const BuyResult)> new_after_trade
+) : good { &new_good },
+ max_quantity { new_max_quantity },
+ money_to_spend { new_money_to_spend },
+ after_trade { new_after_trade }
+ {} \ No newline at end of file