summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Settlement.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2Settlement.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to 'src/T2DLL/T2Settlement.h')
-rw-r--r--src/T2DLL/T2Settlement.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/T2DLL/T2Settlement.h b/src/T2DLL/T2Settlement.h
new file mode 100644
index 0000000..dc59339
--- /dev/null
+++ b/src/T2DLL/T2Settlement.h
@@ -0,0 +1,31 @@
+#pragma once
+#include "common.h"
+
+class T2Settlement {
+public:
+ T2Settlement(T2TowerDoc*, int);
+ T2Settlement(T2TowerDoc*, T2Archive&);
+ ~T2Settlement();
+ T2Archive& Write(T2Archive&) const;
+ void DoPay(int, short);
+ void DoPayTool(int, short, T2ToolDef*);
+ void EmitPayToolMessage(T2TowerDoc*, T2ToolDef*, const CString&, int, int);
+protected:
+ T2DateTime* GetTimeLimitOfMessage(T2TowerDoc*, T2ToolDef*, int);
+ void SetTimeLimitOfMessage(T2TowerDoc*, T2ToolDef*, int, T2DateTime*);
+ T2DateTime* FindCategoryTimeLimit(T2TowerDoc*, T2ToolDef*);
+ void LinkCategoryTimeLimit(T2TowerDoc*, T2ToolDef*, T2DateTime*);
+ static T2DateTime* CalcTimeLimitOfMessage(T2DateTime*, int);
+public:
+ int GetCurrentFunds() const;
+ int GetPreviousFunds() const;
+ int GetTotalSettlement(short) const;
+ int GetToolSettlement(T2ToolDef*) const;
+ int GetCategorySettlement(int) const;
+protected:
+ void Initialize(T2TowerDoc*, int);
+public:
+ void Update();
+
+ T2Settlement& operator=(const T2Settlement&) {}
+};