diff options
author | Paul Gilbert | 2015-01-03 03:19:14 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-01-03 03:19:14 -1000 |
commit | 97cd5a7e6961be52d545e3c131a85cd90c582441 (patch) | |
tree | aab7be3a330a27d000b261620548510677ca0db5 /engines/xeen/interface.h | |
parent | 166676462ae3ed6ddbe186504cf7ecb5f2e55703 (diff) | |
download | scummvm-rg350-97cd5a7e6961be52d545e3c131a85cd90c582441.tar.gz scummvm-rg350-97cd5a7e6961be52d545e3c131a85cd90c582441.tar.bz2 scummvm-rg350-97cd5a7e6961be52d545e3c131a85cd90c582441.zip |
XEEN: Split game interface code into it's own class
Diffstat (limited to 'engines/xeen/interface.h')
-rw-r--r-- | engines/xeen/interface.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/engines/xeen/interface.h b/engines/xeen/interface.h new file mode 100644 index 0000000000..565fe84273 --- /dev/null +++ b/engines/xeen/interface.h @@ -0,0 +1,73 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef XEEN_INTERFACE_H +#define XEEN_INTERFACE_H + +#include "common/scummsys.h" +#include "xeen/dialogs.h" +#include "xeen/party.h" + +namespace Xeen { + +class XeenEngine; + +class Interface: public ButtonContainer { +private: + XeenEngine *_vm; + SpriteResource _dseFace; + SpriteResource _globalSprites; + SpriteResource _borderSprites; + SpriteResource _spellFxSprites; + SpriteResource _fecpSprites; + SpriteResource _blessSprites; + SpriteResource _charFaces[TOTAL_CHARACTERS]; + SpriteResource *_partyFaces[MAX_ACTIVE_PARTY]; + + int _batUIFrame; + int _spotDoorsUIFrame; + int _dangerSenseUIFrame; + int _face1UIFrame; + int _face2UIFrame; + int _blessedUIFrame; + int _powerShieldUIFrame; + int _holyBonusUIFrame; + int _heroismUIFrame; + bool _isEarlyGame; + bool _buttonsLoaded; + + void loadSprites(); + + void loadCharIcons(int numChars); + + void assembleBorder(); + + void setupBackground(); +public: + Interface(XeenEngine *vm); + + void setup(bool soundPlayed); +}; + +} // End of namespace Xeen + +#endif /* XEEN_INTERFACE_H */ |