diff options
author | Joseph-Eugene Winzer | 2017-08-11 21:47:54 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 01:13:53 +0000 |
commit | f0b638d762a05dba9af9362833d82ad9973a95f2 (patch) | |
tree | 68583ee66e65566ef8dd1f2cd2a4337614486a53 /engines | |
parent | 3579bdef80cbb858a3d8dbb06fbdffea1c8ab933 (diff) | |
download | scummvm-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.h | 4 |
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; } |