FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::MapObserver Class Reference
+ Inheritance diagram for FIFE::MapObserver:
+ Collaboration diagram for FIFE::MapObserver:

Public Member Functions

 MapObserver (Camera *camera)
 
virtual ~MapObserver ()
 
virtual void onMapChanged (Map *map, std::vector< Layer * > &changedLayers)
 Called when some layer is changed on map. More...
 
virtual void onLayerCreate (Map *map, Layer *layer)
 Called when some layer gets created on the map. More...
 
virtual void onLayerDelete (Map *map, Layer *layer)
 Called when some layer gets deleted on map. More...
 
- Public Member Functions inherited from FIFE::MapChangeListener
virtual ~MapChangeListener ()
 

Private Attributes

Cameram_camera
 

Detailed Description

Definition at line 59 of file camera.cpp.

Constructor & Destructor Documentation

FIFE::MapObserver::MapObserver ( Camera camera)
inline

Definition at line 63 of file camera.cpp.

virtual FIFE::MapObserver::~MapObserver ( )
inlinevirtual

Definition at line 66 of file camera.cpp.

Member Function Documentation

virtual void FIFE::MapObserver::onLayerCreate ( Map map,
Layer layer 
)
inlinevirtual

Called when some layer gets created on the map.

Parameters
mapwhere change occurred
layerwhich got created

Implements FIFE::MapChangeListener.

Definition at line 71 of file camera.cpp.

References FIFE::Camera::addLayer().

virtual void FIFE::MapObserver::onLayerDelete ( Map map,
Layer layer 
)
inlinevirtual

Called when some layer gets deleted on map.

Parameters
mapwhere change occurred
layerwhich will be deleted
Note
right after this call, layer actually gets deleted!

Implements FIFE::MapChangeListener.

Definition at line 75 of file camera.cpp.

References FIFE::Camera::removeLayer().

virtual void FIFE::MapObserver::onMapChanged ( Map map,
std::vector< Layer * > &  changedLayers 
)
inlinevirtual

Called when some layer is changed on map.

See also
LayerChangeListener Layer is effectively changed, in case some of its instances is created, deleted or changed during latest update cycle
Parameters
mapwhere change occurred
changedLayerslist of layers containing some changes
Note
Does not report layer creations and deletions

Implements FIFE::MapChangeListener.

Definition at line 68 of file camera.cpp.

Member Data Documentation

Camera* FIFE::MapObserver::m_camera
private

Definition at line 60 of file camera.cpp.


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