#include <level_transformer.hpp>
Inherited by FlipLevelTransformer.
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 |
Definition at line 27 of file level_transformer.hpp.
LevelTransformer::~LevelTransformer | ( | ) | [virtual] |
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] |