aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-11 21:47:54 +0200
committerThierry Crozat2018-01-23 01:13:53 +0000
commitf0b638d762a05dba9af9362833d82ad9973a95f2 (patch)
tree68583ee66e65566ef8dd1f2cd2a4337614486a53 /engines
parent3579bdef80cbb858a3d8dbb06fbdffea1c8ab933 (diff)
downloadscummvm-rg350-f0b638d762a05dba9af9362833d82ad9973a95f2.tar.gz
scummvm-rg350-f0b638d762a05dba9af9362833d82ad9973a95f2.tar.bz2
scummvm-rg350-f0b638d762a05dba9af9362833d82ad9973a95f2.zip
SUPERNOVA: Adds resetProperty() for Objects
resetProperty() optionally takes an ObjectType as parameter that the object gets set to. Otherwise it will be set as NULLTYPE.
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/msn_def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/supernova/msn_def.h b/engines/supernova/msn_def.h
index 08bcfe000a..02a38d54a6 100644
--- a/engines/supernova/msn_def.h
+++ b/engines/supernova/msn_def.h
@@ -483,6 +483,10 @@ struct Object {
static bool isNullObject(Object *obj) {
return obj == &nullObject;
}
+ void resetProperty(ObjectType type = NULLTYPE) {
+ _type = type;
+ }
+
void setProperty(ObjectType type) {
_type |= type;
}