LevelTransformer Class Reference

This class is an abstract interface for algorithms that transform levels in some way before they are played. More...

#include <level_transformer.hpp>

Inherited by FlipLevelTransformer.

List of all members.

Public Member Functions

virtual ~LevelTransformer ()
virtual void transform (Level *level)
 transform a complete Level, the standard implementation just calls transformSector on each sector in the level.
virtual void transform_sector (Sector *sector)=0


Detailed Description

This class is an abstract interface for algorithms that transform levels in some way before they are played.

Definition at line 27 of file level_transformer.hpp.


Constructor & Destructor Documentation

LevelTransformer::~LevelTransformer (  )  [virtual]

Definition at line 20 of file level_transformer.cpp.

00021 {
00022 }


Member Function Documentation

void LevelTransformer::transform ( Level level  )  [virtual]

transform a complete Level, the standard implementation just calls transformSector on each sector in the level.

Definition at line 25 of file level_transformer.cpp.

References Level::get_sector(), Level::get_sector_count(), and transform_sector().

Referenced by scripting::Level_flip_vertically().

00026 {
00027   for(size_t i = 0; i < level->get_sector_count(); ++i) {
00028     transform_sector(level->get_sector(i));
00029   }
00030 }

virtual void LevelTransformer::transform_sector ( Sector sector  )  [pure virtual]

Implemented in FlipLevelTransformer.

Referenced by transform().


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