1// SuperTux - Sector scripting
2// Copyright (C) 2016 Hume2 <teratux.mail@gmail.com>
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17#ifndef HEADER_SUPERTUX_SCRIPTING_BACKGROUND_HPP
18#define HEADER_SUPERTUX_SCRIPTING_BACKGROUND_HPP
19
20#ifndef SCRIPTING_API
21#include <string>
22
23#include "scripting/game_object.hpp"
24
25class Background;
26#endif
27
28namespace scripting {
29
30class Background final
31#ifndef SCRIPTING_API
32 : public GameObject<::Background>
33#endif
34{
35#ifndef SCRIPTING_API
36public:
37 using GameObject::GameObject;
38
39private:
40 Background(const Background&) = delete;
41 Background& operator=(const Background&) = delete;
42#endif
43
44public:
45 void set_image(const std::string& image);
46 void set_images(const std::string& top_image, const std::string& middle_image,
47 const std::string& bottom_image);
48 void set_speed(float speed);
49};
50
51} // namespace scripting
52
53#endif
54
55/* EOF */
56