ScummVM API documentation
sun_moon_ribbon.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 NUVIE_VIEWS_SUN_MOON_RIBBON_H
23#define NUVIE_VIEWS_SUN_MOON_RIBBON_H
24
25#include "ultima/nuvie/views/sun_moon_strip_widget.h"
26
27namespace Ultima {
28namespace Nuvie {
29
31
32private:
34 Weather *weather;
35 bool retracted;
36 uint16 current_time;
37
38public:
40 ~SunMoonRibbon() override;
41
42 void init(Screen *screen);
43 void Display(bool full_redraw) override;
44
45 GUI_status MouseDown(int x, int y, Events::MouseButton button) override;
46
47
48 void extend() {
49 retracted = false;
50 }
51 void retract() {
52 retracted = true;
53 }
54
55protected:
56 void display_sun_moon(const Tile *tile, uint8 pos) override;
57
58private:
59 void loadBgImage(uint8 num);
60 void display_surface_strip();
61 void display_dungeon_strip();
62 void update_hour(uint16 time);
63};
64
65} // End of namespace Nuvie
66} // End of namespace Ultima
67
68#endif
Definition: managed_surface.h:51
Definition: player.h:41
Definition: screen.h:41
Definition: sun_moon_ribbon.h:30
Definition: sun_moon_strip_widget.h:33
Definition: tile_manager.h:145
Definition: weather.h:44
Definition: tile_manager.h:113