17 #ifndef HEADER_SUPERTUX_SCRIPTING_TILEMAP_HPP 18 #define HEADER_SUPERTUX_SCRIPTING_TILEMAP_HPP 21 #include "scripting/game_object.hpp" 36 using GameObject::GameObject;
59 void change(
int x,
int y,
int newtile);
62 void change_at(
float x,
float y,
int newtile);
68 void fade(
float alpha,
float seconds);
74 void tint_fade(
float seconds,
float red,
float green,
float blue,
float alpha);
void goto_node(int node_no)
Move tilemap until at given node, then stop.
Definition: tilemap.cpp:23
WARNING: This file is automatically generated from: 'src/scripting/wrapper.interface.hpp' DO NOT CHANGE.
Definition: ambient_sound.cpp:21
Definition: game_object.hpp:60
void stop_moving()
Stop tilemap at next node.
Definition: tilemap.cpp:37
int get_tile_id(int x, int y) const
returns tile ID in row y and column y (of the tilemap)
Definition: tilemap.cpp:44
void start_moving()
Start moving tilemap.
Definition: tilemap.cpp:30
void set_alpha(float alpha)
Instantly switch tilemap's opacity to alpha.
Definition: tilemap.cpp:86
void set_solid(bool solid)
Switch tilemap's real solidity to the given bool.
Definition: tilemap.cpp:100
void change_at(float x, float y, int newtile)
replaces the tile by given tile at position pos (in world coordinates)
Definition: tilemap.cpp:65
float get_alpha() const
Return tilemap's opacity.
Definition: tilemap.cpp:93
int get_tile_id_at(float x, float y) const
returns tile ID at position pos (in world coordinates)
Definition: tilemap.cpp:51
void tint_fade(float seconds, float red, float green, float blue, float alpha)
Start fading the tilemap to tint given by RGBA.
Definition: tilemap.cpp:79
This class is responsible for drawing the level tiles.
Definition: tilemap.hpp:39
void fade(float alpha, float seconds)
Start fading the tilemap to opacity given by alpha.
Definition: tilemap.cpp:72
Definition: tilemap.hpp:28
void change(int x, int y, int newtile)
replaces the tile by given tile in row y and column y (of the tilemap)
Definition: tilemap.cpp:58