ScummVM API documentation
domespit.h
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 modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (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, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef RIVEN_STACKS_DOMESPIT_H
23#define RIVEN_STACKS_DOMESPIT_H
24
25#include "mohawk/riven_stack.h"
26
27namespace Mohawk {
28namespace RivenStacks {
29
30class DomeSpit : public RivenStack {
31public:
32 DomeSpit(MohawkEngine_Riven *vm, uint16 id, const char *sliderBmpName, const char *sliderBgBmpName);
33
34 uint32 getDomeSliderState() const;
35 void setDomeSliderState(uint32 sliderState);
36
37protected:
38 void runDomeCheck();
39 void runDomeButtonMovie();
40 void resetDomeSliders(uint16 startHotspot);
41 void checkDomeSliders();
42 void checkSliderCursorChange(uint16 startHotspot);
43 void dragDomeSlider(uint16 startHotspot);
44 void drawDomeSliders(uint16 startHotspot);
45 int16 getSliderSlotClosestToPos(uint16 startHotspot, const Common::Point &pos) const;
46 bool isSliderAtSlot(int16 slot) const;
47 Common::String buildCardResourceName(const Common::String &name) const;
48
49 uint32 _sliderState;
50 Common::String _sliderBmpName;
51 Common::String _sliderBgBmpName;
52};
53
54} // End of namespace RivenStacks
55} // End of namespace Mohawk
56
57#endif
Definition: str.h:59
Definition: riven.h:91
Definition: riven_stack.h:89
Definition: domespit.h:30
Definition: bitmap.h:32
Definition: rect.h:144