FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::MapSaver Class Reference

default map saver class implementing the IMapSaver interface More...

#include <mapsaver.h>

+ Inheritance diagram for FIFE::MapSaver:
+ Collaboration diagram for FIFE::MapSaver:

Public Member Functions

 MapSaver ()
 constructor More...
 
 ~MapSaver ()
 destructor More...
 
virtual void setObjectSaver (const FIFE::ObjectSaverPtr &objectSaver)
 allows setting which object saver will be used to save object files More...
 
virtual void setAnimationSaver (const FIFE::AnimationSaverPtr &animationSaver)
 allows setting which animation saver will be used to save animation files More...
 
virtual void setAtlasSaver (const FIFE::AtlasSaverPtr &atlasSaver)
 allows setting which atlas saver will be used to save atlas files More...
 
virtual void save (const Map &map, const std::string &filename, const std::vector< std::string > &importFiles)
 responsible for saving the map resource used to save map files More...
 
- Public Member Functions inherited from FIFE::IMapSaver
virtual ~IMapSaver ()
 

Private Attributes

ObjectSaverPtr m_objectSaver
 
AnimationSaverPtr m_animationSaver
 
AtlasSaverPtr m_atlasSaver
 

Detailed Description

default map saver class implementing the IMapSaver interface

Definition at line 40 of file mapsaver.h.

Constructor & Destructor Documentation

◆ MapSaver()

FIFE::MapSaver::MapSaver ( )

constructor

Definition at line 50 of file mapsaver.cpp.

◆ ~MapSaver()

FIFE::MapSaver::~MapSaver ( )

destructor

Definition at line 56 of file mapsaver.cpp.

Member Function Documentation

◆ save()

void FIFE::MapSaver::save ( const Map map,
const std::string &  filename,
const std::vector< std::string > &  importFiles 
)
virtual

responsible for saving the map resource used to save map files

Implements FIFE::IMapSaver.

Definition at line 75 of file mapsaver.cpp.

References FIFE::CELL_EDGES_AND_DIAGONALS, FIFE::CELL_EDGES_ONLY, FIFE::CTYPE_CELL_BLOCKER, FIFE::CTYPE_CELL_NO_BLOCKER, FIFE::Cell::defaultCost(), FIFE::Cell::defaultSpeed(), FIFE::Math< T >::Equal(), FIFE::CellCache::existsCostForCell(), FIFE::TriggerController::getAllTriggers(), FIFE::Map::getCameras(), FIFE::CellCache::getCellAreas(), FIFE::CellCache::getCells(), FIFE::Object::getCellStackPosition(), FIFE::Cell::getCellType(), FIFE::Object::getCost(), FIFE::CellCache::getCost(), FIFE::Object::getCostId(), FIFE::Cell::getCostMultiplier(), FIFE::CellCache::getCosts(), FIFE::CellCache::getDefaultCostMultiplier(), FIFE::CellCache::getDefaultSpeedMultiplier(), FIFE::Object::getId(), FIFE::Map::getId(), FIFE::Layer::getId(), FIFE::Cell::getInstances(), FIFE::Cell::getLayerCoordinates(), FIFE::Map::getLayers(), FIFE::Object::getNamespace(), FIFE::CellCache::getNarrowCells(), FIFE::CellGrid::getRotation(), FIFE::Cell::getSpeedMultiplier(), FIFE::InstanceVisual::getStackPosition(), FIFE::Cell::getTransition(), FIFE::Map::getTriggerController(), FIFE::CellGrid::getType(), FIFE::CellGrid::getXScale(), FIFE::CellGrid::getXShift(), FIFE::CellGrid::getYScale(), FIFE::CellGrid::getYShift(), FIFE::CellGrid::getZShift(), FIFE::RectType< T >::h, FIFE::Object::isMultiPart(), FIFE::CellCache::isSearchNarrowCells(), FIFE::Object::isSpecialCost(), FIFE::TransitionInfo::m_immediate, FIFE::TransitionInfo::m_layer, FIFE::TransitionInfo::m_mc, FIFE::SORTING_CAMERA, FIFE::SORTING_CAMERA_AND_LOCATION, FIFE::SORTING_LOCATION, FIFE::RectType< T >::w, FIFE::PointType2D< T >::x, FIFE::RectType< T >::x, FIFE::PointType3D< T >::x, FIFE::PointType2D< T >::y, FIFE::RectType< T >::y, FIFE::PointType3D< T >::y, and FIFE::PointType3D< T >::z.

◆ setAnimationSaver()

void FIFE::MapSaver::setAnimationSaver ( const FIFE::AnimationSaverPtr animationSaver)
virtual

allows setting which animation saver will be used to save animation files

Implements FIFE::IMapSaver.

Definition at line 66 of file mapsaver.cpp.

References m_animationSaver.

◆ setAtlasSaver()

void FIFE::MapSaver::setAtlasSaver ( const FIFE::AtlasSaverPtr atlasSaver)
virtual

allows setting which atlas saver will be used to save atlas files

Implements FIFE::IMapSaver.

Definition at line 71 of file mapsaver.cpp.

References m_atlasSaver.

◆ setObjectSaver()

void FIFE::MapSaver::setObjectSaver ( const FIFE::ObjectSaverPtr objectSaver)
virtual

allows setting which object saver will be used to save object files

Implements FIFE::IMapSaver.

Definition at line 61 of file mapsaver.cpp.

References m_objectSaver.

Member Data Documentation

◆ m_animationSaver

AnimationSaverPtr FIFE::MapSaver::m_animationSaver
private

Definition at line 72 of file mapsaver.h.

Referenced by setAnimationSaver().

◆ m_atlasSaver

AtlasSaverPtr FIFE::MapSaver::m_atlasSaver
private

Definition at line 73 of file mapsaver.h.

Referenced by setAtlasSaver().

◆ m_objectSaver

ObjectSaverPtr FIFE::MapSaver::m_objectSaver
private

Definition at line 71 of file mapsaver.h.

Referenced by setObjectSaver().


The documentation for this class was generated from the following files: