diff options
author | Nicola Mettifogo | 2007-11-01 13:47:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-11-01 13:47:18 +0000 |
commit | 512e57c69017578e9cbf2d623467933d93cf4aaf (patch) | |
tree | b4def6455403e6ffef28e9fc60f8f2f295882fa7 /engines/parallaction/parallaction.h | |
parent | 4521634286268f45087c6d0cdaa09cafeda88b4e (diff) | |
download | scummvm-rg350-512e57c69017578e9cbf2d623467933d93cf4aaf.tar.gz scummvm-rg350-512e57c69017578e9cbf2d623467933d93cf4aaf.tar.bz2 scummvm-rg350-512e57c69017578e9cbf2d623467933d93cf4aaf.zip |
Added new LocationName class to simplify handling of location switches.
svn-id: r29353
Diffstat (limited to 'engines/parallaction/parallaction.h')
-rw-r--r-- | engines/parallaction/parallaction.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index dc4e7fcb5e..0f4cd12253 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -597,6 +597,48 @@ public: }; +class LocationName { + + Common::String _slide; + Common::String _character; + Common::String _location; + + bool _hasCharacter; + bool _hasSlide; + char *_buf; + +public: + LocationName(); + ~LocationName(); + + void bind(const char*); + + const char *location() const { + return _location.c_str(); + } + + bool hasCharacter() const { + return _hasCharacter; + } + + const char *character() const { + return _character.c_str(); + } + + bool hasSlide() const { + return _hasSlide; + } + + const char *slide() const { + return _slide.c_str(); + } + + const char *c_str() const { + return _buf; + } +}; + + class Parallaction_ns : public Parallaction { public: |