FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::MapChangeListener Class Referenceabstract

Listener interface for changes happening on map. More...

#include <map.h>

+ Inheritance diagram for FIFE::MapChangeListener:
+ Collaboration diagram for FIFE::MapChangeListener:

Public Member Functions

virtual ~MapChangeListener ()
 
virtual void onMapChanged (Map *map, std::vector< Layer * > &changedLayers)=0
 Called when some layer is changed on map. More...
 
virtual void onLayerCreate (Map *map, Layer *layer)=0
 Called when some layer gets created on the map. More...
 
virtual void onLayerDelete (Map *map, Layer *layer)=0
 Called when some layer gets deleted on map. More...
 

Detailed Description

Listener interface for changes happening on map.

Definition at line 56 of file map.h.

Constructor & Destructor Documentation

virtual FIFE::MapChangeListener::~MapChangeListener ( )
inlinevirtual

Definition at line 58 of file map.h.

References onLayerCreate(), onLayerDelete(), and onMapChanged().

Member Function Documentation

virtual void FIFE::MapChangeListener::onLayerCreate ( Map map,
Layer layer 
)
pure virtual

Called when some layer gets created on the map.

Parameters
mapwhere change occurred
layerwhich got created

Implemented in FIFE::MapObserver, and FIFE::ModelMapObserver.

Referenced by ~MapChangeListener().

+ Here is the caller graph for this function:

virtual void FIFE::MapChangeListener::onLayerDelete ( Map map,
Layer layer 
)
pure virtual

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!

Implemented in FIFE::MapObserver, and FIFE::ModelMapObserver.

Referenced by ~MapChangeListener().

+ Here is the caller graph for this function:

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

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

Implemented in FIFE::MapObserver, and FIFE::ModelMapObserver.

Referenced by ~MapChangeListener().

+ Here is the caller graph for this function:


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