summaryrefslogtreecommitdiff
path: root/src/T2DLL/UT2Utils.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/UT2Utils.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/UT2Utils.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/T2DLL/UT2Utils.h b/src/T2DLL/UT2Utils.h
index df542ac..37bc43b 100644
--- a/src/T2DLL/UT2Utils.h
+++ b/src/T2DLL/UT2Utils.h
@@ -1,12 +1,14 @@
#pragma once
#include "common.h"
-class UT2Utils {
+class AFX_EXT_CLASS UT2Utils {
public:
- static unsigned int Float2Int(float);
- static void GetRoomNumberString(int, CString&);
- static void GetHourMinute(int, int&, int&);
- static void GetMonetaryString(int, CString&);
+ static unsigned int Float2Int(float inValue);
+ static void GetRoomNumberString(int inNumber, CString& outStr);
+ static void GetHourMinute(int inValue, int& outHour, int& outMinute);
+ static void GetMonetaryString(int inValue, CString& outStr);
- static int Randomize(int) { return 1; }
+ static int Randomize(int inRange) {
+ return (inRange == 0) ? 0 : (rand() % inRange);
+ }
};