aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/object.h
diff options
context:
space:
mode:
authorrichiesams2013-06-24 14:45:51 -0500
committerrichiesams2013-08-04 13:31:47 -0500
commit8cc678e2eeda0df0b80fd19b03712a626b0b7bd2 (patch)
treef2e1bdb2447be86376499daa56e31c70c2d9d912 /engines/zvision/object.h
parentcf7c04a001d99081d73e4340acb8065ad593030a (diff)
downloadscummvm-rg350-8cc678e2eeda0df0b80fd19b03712a626b0b7bd2.tar.gz
scummvm-rg350-8cc678e2eeda0df0b80fd19b03712a626b0b7bd2.tar.bz2
scummvm-rg350-8cc678e2eeda0df0b80fd19b03712a626b0b7bd2.zip
ZVISION: Convert 'Object' implicit conversion operators to accessors
Implicit conversion, while simple can cause problems and doesn't show exactly how to get the value.
Diffstat (limited to 'engines/zvision/object.h')
-rw-r--r--engines/zvision/object.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/zvision/object.h b/engines/zvision/object.h
index b98b3812cd..4df572c2b1 100644
--- a/engines/zvision/object.h
+++ b/engines/zvision/object.h
@@ -97,15 +97,15 @@ public:
Object& operator=(const Object &rhs);
- operator bool();
- operator byte();
- operator int16();
- operator uint16();
- operator int32();
- operator uint32();
- operator float();
- operator double();
- operator Common::String();
+ bool getBoolValue(bool *returnValue) const;
+ bool getByteValue(byte *returnValue) const;
+ bool getInt16Value(int16 *returnValue) const;
+ bool getUInt16Value(uint16 *returnValue) const;
+ bool getInt32Value(int32 *returnValue) const;
+ bool getUInt32Value(uint32 *returnValue) const;
+ bool getFloatValue(float *returnValue) const;
+ bool getDoubleValue(double *returnValue) const;
+ bool getStringValue(Common::String *returnValue) const;
private:
/**