#include <tilemap.hpp>
Public Member Functions | |
TileMap (_TileMap *tilemap) | |
~TileMap () | |
void | goto_node (int node_no) |
Move tilemap until at given node, then stop. | |
void | start_moving () |
Start moving tilemap. | |
void | stop_moving () |
Stop tilemap at next node. | |
void | fade (float alpha, float seconds) |
Start fading the tilemap to opacity given by alpha . | |
void | set_alpha (float alpha) |
Instantly switch tilemap's opacity to alpha . | |
float | get_alpha () |
Return tilemap's opacity. | |
Public Attributes | |
_TileMap * | tilemap |
Private Member Functions | |
TileMap (const TileMap &) | |
TileMap & | operator= (const TileMap &) |
Definition at line 27 of file tilemap.hpp.
scripting::TileMap::TileMap | ( | _TileMap * | tilemap | ) |
TileMap::~TileMap | ( | ) |
scripting::TileMap::TileMap | ( | const TileMap & | ) | [private] |
void TileMap::goto_node | ( | int | node_no | ) |
Move tilemap until at given node, then stop.
Definition at line 31 of file tilemap.cpp.
References TileMap::goto_node().
Referenced by scripting::wrapper::TileMap_goto_node_wrapper().
void TileMap::start_moving | ( | ) |
Start moving tilemap.
Definition at line 36 of file tilemap.cpp.
References TileMap::start_moving().
Referenced by scripting::wrapper::TileMap_start_moving_wrapper().
00037 { 00038 tilemap->start_moving(); 00039 }
void TileMap::stop_moving | ( | ) |
Stop tilemap at next node.
Definition at line 41 of file tilemap.cpp.
References TileMap::stop_moving().
Referenced by scripting::wrapper::TileMap_stop_moving_wrapper().
00042 { 00043 tilemap->stop_moving(); 00044 }
void TileMap::fade | ( | float | alpha, | |
float | seconds | |||
) |
Start fading the tilemap to opacity given by alpha
.
Destination opacity will be reached after seconds
seconds. Also influences solidity.
Definition at line 46 of file tilemap.cpp.
References TileMap::fade().
Referenced by scripting::wrapper::TileMap_fade_wrapper().
void TileMap::set_alpha | ( | float | alpha | ) |
Instantly switch tilemap's opacity to alpha
.
Also influences solidity.
Definition at line 51 of file tilemap.cpp.
References TileMap::set_alpha().
Referenced by scripting::wrapper::TileMap_set_alpha_wrapper().
float TileMap::get_alpha | ( | ) |
Return tilemap's opacity.
Note that while the tilemap is fading in or out, this will return the current alpha value, not the target alpha.
Definition at line 56 of file tilemap.cpp.
References TileMap::get_alpha().
Referenced by scripting::wrapper::TileMap_get_alpha_wrapper().
Definition at line 61 of file tilemap.hpp.