ScummVM API documentation
ags_snow_rain.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 * 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, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef AGS_PLUGINS_AGS_SNOW_RAIN_AGS_SNOW_RAIN_H
23#define AGS_PLUGINS_AGS_SNOW_RAIN_AGS_SNOW_RAIN_H
24
25#include "ags/plugins/ags_plugin.h"
26#include "ags/plugins/ags_snow_rain/weather.h"
27
28namespace AGS3 {
29namespace Plugins {
30namespace AGSSnowRain {
31
36class AGSSnowRain : public PluginBase {
37 SCRIPT_HASH(AGSSnowRain)
38private:
39 int32 _screenWidth = 320;
40 int32 _screenHeight = 200;
41 int32 _screenColorDepth = 32;
42 Weather _rain;
43 Weather _snow;
44
45private:
46 void srSetWindSpeed(ScriptMethodParams &params);
47 void srSetBaseline(ScriptMethodParams &params);
48 void srSetSnowDriftRange(ScriptMethodParams &params);
49 void srSetSnowDriftSpeed(ScriptMethodParams &params);
50 void srChangeSnowAmount(ScriptMethodParams &params);
51 void srSetSnowView(ScriptMethodParams &params);
52 void srSetSnowDefaultView(ScriptMethodParams &params);
53 void srSetSnowTransparency(ScriptMethodParams &params);
54 void srSetSnowWindSpeed(ScriptMethodParams &params);
55 void srSetSnowBaseline(ScriptMethodParams &params);
56 void srSetSnowAmount(ScriptMethodParams &params);
57 void srSetSnowFallSpeed(ScriptMethodParams &params);
58 void srSetRainDriftRange(ScriptMethodParams &params);
59 void srSetRainDriftSpeed(ScriptMethodParams &params);
60 void srChangeRainAmount(ScriptMethodParams &params);
61 void srSetRainView(ScriptMethodParams &params);
62 void srSetRainDefaultView(ScriptMethodParams &params);
63 void srSetRainTransparency(ScriptMethodParams &params);
64 void srSetRainWindSpeed(ScriptMethodParams &params);
65 void srSetRainBaseline(ScriptMethodParams &params);
66 void srSetRainAmount(ScriptMethodParams &params);
67 void srSetRainFallSpeed(ScriptMethodParams &params);
68public:
70 virtual ~AGSSnowRain() {}
71
72 const char *AGS_GetPluginName() override;
73 void AGS_EngineStartup(IAGSEngine *lpEngine) override;
74 int64 AGS_EngineOnEvent(int event, NumberPtr data) override;
75};
76
77} // namespace AGSSnowRain
78} // namespace Plugins
79} // namespace AGS3
80
81#endif
Definition: ags_plugin.h:296
Definition: types.h:112
Definition: ags_snow_rain.h:36
Definition: weather.h:65
Definition: plugin_base.h:171
Definition: plugin_base.h:131