From ef9beb0814c36cda979a4ed7e9175e72e69540ac Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 24 Feb 2024 11:31:28 +0100 Subject: New application: build upgrade helper for aoo --- calculette_aoo/lib/carac.mli | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 calculette_aoo/lib/carac.mli (limited to 'calculette_aoo/lib/carac.mli') 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 -- cgit v1.2.3