aboutsummaryrefslogtreecommitdiff
path: root/calculette_aoo/lib/carac.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-02-24 11:31:28 +0100
committerSébastien Dailly <sebastien@dailly.me>2024-02-24 11:31:28 +0100
commitef9beb0814c36cda979a4ed7e9175e72e69540ac (patch)
treec2852b1dd5df53f5d78e9e952f29360d50126e06 /calculette_aoo/lib/carac.mli
parent9e7f27c60a425e2baa67cd459d8509a43b1d123d (diff)
New application: build upgrade helper for aoo
Diffstat (limited to 'calculette_aoo/lib/carac.mli')
-rw-r--r--calculette_aoo/lib/carac.mli17
1 files changed, 17 insertions, 0 deletions
diff --git a/calculette_aoo/lib/carac.mli b/calculette_aoo/lib/carac.mli
new file mode 100644
index 0000000..f364c81
--- /dev/null
+++ b/calculette_aoo/lib/carac.mli
@@ -0,0 +1,17 @@
+type t
+type cout_carac = int * int * int
+
+val create : ?bonus:int -> int -> cout_carac -> t
+
+val cout : t -> int
+(** Get the cost for the upgrades for this property *)
+
+val value : t -> int
+(** Get the value (including upgrades) for this property *)
+
+val incr : ?step:int -> t -> t
+(** Increment this property.
+ step is default 1.
+ *)
+
+val repr : Format.formatter -> t -> unit