scripting::TileMap Class Reference

#include <tilemap.hpp>

List of all members.

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

_TileMaptilemap

Private Member Functions

 TileMap (const TileMap &)
TileMapoperator= (const TileMap &)


Detailed Description

Definition at line 27 of file tilemap.hpp.


Constructor & Destructor Documentation

scripting::TileMap::TileMap ( _TileMap tilemap  ) 

TileMap::~TileMap (  ) 

Definition at line 28 of file tilemap.cpp.

00029 { }

scripting::TileMap::TileMap ( const TileMap  )  [private]


Member Function Documentation

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().

00032 {
00033   tilemap->goto_node(node_no);
00034 }

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().

00047 {
00048   tilemap->fade(alpha, seconds);
00049 }

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().

00052 {
00053   tilemap->set_alpha(alpha);
00054 }

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().

00057 {
00058   return tilemap->get_alpha();
00059 }

TileMap& scripting::TileMap::operator= ( const TileMap  )  [private]


Member Data Documentation

_TileMap* scripting::TileMap::tilemap

Definition at line 61 of file tilemap.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:40 2014 for SuperTux by  doxygen 1.5.1