ScummVM API documentation
sun_moon_strip_widget.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_STRIP_WIDGET_H
23 #define NUVIE_VIEWS_SUN_MOON_STRIP_WIDGET_H
24 
25 #include "ultima/nuvie/gui/widgets/gui_widget.h"
26 #include "ultima/nuvie/core/tile_manager.h"
27 
28 namespace Ultima {
29 namespace Nuvie {
30 
31 class Player;
32 
34 
35 protected:
36  TileManager *tile_manager;
37  Player *player;
38 
39 public:
41  ~SunMoonStripWidget() override;
42 
43  void init(sint16 x, sint16 y);
44  void Display(bool full_redraw) override;
45 
46 protected:
47  virtual void display_sun_moon(const Tile *tile, uint8 pos);
48  void display_sun(uint8 hour, uint8 minute, bool eclipse);
49  void display_moons(uint8 day, uint8 hour, uint8 minute = 0);
50 
51 private:
52  void display_surface_strip();
53  void display_dungeon_strip();
54 };
55 
56 } // End of namespace Nuvie
57 } // End of namespace Ultima
58 
59 #endif
Definition: gui_widget.h:38
Definition: player.h:41
Definition: sun_moon_strip_widget.h:33
Definition: tile_manager.h:145
Definition: detection.h:27
Definition: tile_manager.h:113