|
FIFE
2008.0
|
#include <map.h>


Public Member Functions | |
| Map (const std::string &identifier, RenderBackend *renderbackend, const std::vector< RendererBase * > &renderers, TimeProvider *tp_master=NULL) | |
| ~Map () | |
| const std::string & | getId () const |
| void | setId (const std::string &id) |
| Layer * | createLayer (const std::string &identifier, CellGrid *grid) |
| void | deleteLayer (Layer *) |
| const std::list< Layer * > & | getLayers () const |
| Layer * | getLayer (const std::string &identifier) |
| uint32_t | getLayerCount () const |
| void | deleteLayers () |
| void | getMatchingCoordinates (const ModelCoordinate &coord_to_map, const Layer *from_layer, const Layer *to_layer, std::vector< ModelCoordinate > &matching_coords) const |
| void | getMinMaxCoordinates (ExactModelCoordinate &min, ExactModelCoordinate &max) |
| bool | update () |
| void | setTimeMultiplier (float multip) |
| float | getTimeMultiplier () const |
| TimeProvider * | getTimeProvider () |
| void | addChangeListener (MapChangeListener *listener) |
| void | removeChangeListener (MapChangeListener *listener) |
| bool | isChanged () |
| std::vector< Layer * > & | getChangedLayers () |
| Camera * | addCamera (const std::string &id, Layer *layer, const Rect &viewport) |
| void | removeCamera (const std::string &id) |
| Camera * | getCamera (const std::string &id) |
| const std::vector< Camera * > & | getCameras () const |
Public Member Functions inherited from FIFE::FifeClass | |
| fifeid_t | getFifeId () |
| FIFE::Map::Map | ( | const std::string & | identifier, |
| RenderBackend * | renderbackend, | ||
| const std::vector< RendererBase * > & | renderers, | ||
| TimeProvider * | tp_master = NULL |
||
| ) |
| FIFE::Map::~Map | ( | ) |
Adds camera to the map. The Map takes ownership of the camera so don't delete it.
Definition at line 206 of file map.cpp.
References FIFE::Camera::addRenderer(), and getCamera().
| void FIFE::Map::addChangeListener | ( | MapChangeListener * | listener | ) |
| Layer * FIFE::Map::createLayer | ( | const std::string & | identifier, |
| CellGrid * | grid | ||
| ) |
| void FIFE::Map::deleteLayer | ( | Layer * | layer | ) |
| void FIFE::Map::deleteLayers | ( | ) |
| Camera * FIFE::Map::getCamera | ( | const std::string & | id | ) |
Get a camera by its identifier.
Definition at line 245 of file map.cpp.
Referenced by addCamera().

| const std::vector< Camera * > & FIFE::Map::getCameras | ( | ) | const |
Get a list containing all cameras.
Definition at line 256 of file map.cpp.
Referenced by FIFE::MapSaver::save().

|
inline |
|
inline |
Get the identifier for this map.
Definition at line 102 of file map.h.
Referenced by FIFE::MapSaver::save().

| Layer * FIFE::Map::getLayer | ( | const std::string & | identifier | ) |
| uint32_t FIFE::Map::getLayerCount | ( | ) | const |
|
inline |
Get the layers on this map.
Definition at line 118 of file map.h.
Referenced by FIFE::RendererBase::activateAllLayers(), FIFE::Camera::render(), and FIFE::MapSaver::save().

| void FIFE::Map::getMatchingCoordinates | ( | const ModelCoordinate & | coord_to_map, |
| const Layer * | from_layer, | ||
| const Layer * | to_layer, | ||
| std::vector< ModelCoordinate > & | matching_coords | ||
| ) | const |
Maps coordinate from one layer to another
| void FIFE::Map::getMinMaxCoordinates | ( | ExactModelCoordinate & | min, |
| ExactModelCoordinate & | max | ||
| ) |
|
inline |
Gets model speed.
Definition at line 154 of file map.h.
References FIFE::TimeProvider::getMultiplier().
|
inline |
Gets timeprovider used in the map
Definition at line 158 of file map.h.
Referenced by FIFE::Instance::getRuntime(), and FIFE::Instance::getTotalTimeMultiplier().

|
inline |
| void FIFE::Map::removeCamera | ( | const std::string & | id | ) |
| void FIFE::Map::removeChangeListener | ( | MapChangeListener * | listener | ) |
|
inline |
|
inline |
Sets speed for the map. See Model::setTimeMultiplier.
Definition at line 150 of file map.h.
References FIFE::TimeProvider::setMultiplier().
| bool FIFE::Map::update | ( | ) |