aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/fixedint.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-07-19 04:39:57 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commit565bf0e96750588e8a7f6816e79683e97896f8de (patch)
tree6d8e0c8ba093937227f073999c587945be2646ab /engines/startrek/fixedint.h
parent2b09f698ed47942d84e6c7f503901941116db328 (diff)
downloadscummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.gz
scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.bz2
scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.zip
STARTREK: atan2 function
Diffstat (limited to 'engines/startrek/fixedint.h')
-rw-r--r--engines/startrek/fixedint.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/startrek/fixedint.h b/engines/startrek/fixedint.h
index cae9efdb94..2ea6400127 100644
--- a/engines/startrek/fixedint.h
+++ b/engines/startrek/fixedint.h
@@ -122,6 +122,31 @@ public:
bool operator<=(double d) const {
return toDouble() <= d;
}
+ bool operator>(double d) const {
+ return toDouble() > d;
+ }
+ bool operator>=(double d) const {
+ return toDouble() >= d;
+ }
+
+ bool operator==(const TFixedInt &f) const {
+ return val == f.val;
+ }
+ bool operator!=(const TFixedInt &f) const {
+ return val != f.val;
+ }
+ bool operator<(const TFixedInt &f) const {
+ return val < f.val;
+ }
+ bool operator<=(const TFixedInt &f) const {
+ return val <= f.val;
+ }
+ bool operator>(const TFixedInt &f) const {
+ return val > f.val;
+ }
+ bool operator>=(const TFixedInt &f) const {
+ return val >= f.val;
+ }
void saveLoadWithSerializer(Common::Serializer &ser) {
if (totalBits == 16)