22 #ifndef NUVIE_CORE_WEATHER_H 23 #define NUVIE_CORE_WEATHER_H 25 #include "ultima/nuvie/core/nuvie_defs.h" 26 #include "ultima/nuvie/misc/call_back.h" 27 #include "ultima/nuvie/core/map.h" 36 class GameTimedCallback;
43 #define WEATHER_CB_CHANGE_WIND_DIR 1 44 #define WEATHER_CB_END_ECLIPSE 2 45 #define WEATHER_WIND_CALM 8 50 nuvie_game_t gametype;
66 NuvieDir get_wind_dir()
const {
69 bool is_displaying_from_wind_dir()
const {
70 return display_from_wind_dir;
72 bool set_wind_dir(NuvieDir new_wind_dir);
73 bool add_wind_change_notification_callback(
CallBack *caller);
74 bool set_moonstone(uint8 moonstone,
MapCoord where);
75 MapCoord get_moonstone(uint8 moonstone);
76 void update_moongates();
78 bool is_eclipse()
const;
79 bool is_moon_visible()
const;
81 uint16 callback(uint16 msg,
CallBack *caller,
void *data =
nullptr)
override;
85 NuvieDir load_wind(
NuvieIO *objlist);
86 bool save_wind(
NuvieIO *objlist);
87 void change_wind_dir();
88 inline void set_wind_change_callback();
89 inline void send_wind_change_notification_callback();
91 bool display_from_wind_dir;
Definition: configuration.h:61
Definition: game_clock.h:49
Definition: timed_event.h:221
Definition: detection.h:27
Definition: call_back.h:50
Definition: containers.h:200
Definition: nuvie_io.h:32