1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef RIVEN_STACKS_DOMESPIT_H
24 #define RIVEN_STACKS_DOMESPIT_H
25 
26 #include "mohawk/riven_stack.h"
27 
28 namespace Mohawk {
29 namespace RivenStacks {
30 
31 class DomeSpit : public RivenStack {
32 public:
33 	DomeSpit(MohawkEngine_Riven *vm, uint16 id, const char *sliderBmpName, const char *sliderBgBmpName);
34 
35 	uint32 getDomeSliderState() const;
36 	void setDomeSliderState(uint32 sliderState);
37 
38 protected:
39 	void runDomeCheck();
40 	void runDomeButtonMovie();
41 	void resetDomeSliders(uint16 startHotspot);
42 	void checkDomeSliders();
43 	void checkSliderCursorChange(uint16 startHotspot);
44 	void dragDomeSlider(uint16 startHotspot);
45 	void drawDomeSliders(uint16 startHotspot);
46 	int16 getSliderSlotClosestToPos(uint16 startHotspot, const Common::Point &pos) const;
47 	bool isSliderAtSlot(int16 slot) const;
48 	Common::String buildCardResourceName(const Common::String &name) const;
49 
50 	uint32 _sliderState;
51 	Common::String _sliderBmpName;
52 	Common::String _sliderBgBmpName;
53 };
54 
55 } // End of namespace RivenStacks
56 } // End of namespace Mohawk
57 
58 #endif
59