22 #ifndef FIFE_TRIGGER_CONTROLLER_H
23 #define FIFE_TRIGGER_CONTROLLER_H
162 void removeTrigger(
const std::string& triggerName,
Layer* layer,
const std::vector<ModelCoordinate>& coords);
184 void removeTrigger(
const std::string& triggerName,
const std::vector<Location>& locs);
198 void removeTrigger(
const std::string& triggerName,
const std::vector<Cell*>& cells);
222 bool exists(
const std::string& name);
std::map< std::string, Trigger * >::const_iterator TriggerNameMapConstIterator
std::map< std::string, Trigger * > TriggerNameMap
Base class for all fife classes Used e.g.
virtual ~TriggerController()
Destructor.
void removeTrigger(const std::string &triggerName, Layer *layer, const ModelCoordinate &pt)
Removes a trigger from the cell on the specified layer and coordinate.
std::vector< Trigger * > getAllTriggers()
Returns a vector with all trigger pointers.
Map * m_map
Pointer to the map this controller is associated with.
std::pair< std::string, Trigger * > TriggerNameMapPair
std::vector< std::string > getAllTriggerNames()
Returns a vector with all trigger names.
Trigger * getTrigger(const std::string &triggerName)
Returns a pointer to the trigger with the given name.
std::map< std::string, Trigger * >::iterator TriggerNameMapIterator
A basic cell on a CellCache.
void deleteTrigger(const std::string &triggerName)
Deltes trigger with the given name.
Trigger * createTrigger(const std::string &triggerName)
Creates a trigger.
Trigger get triggered when a specific set of criteria are met.
bool exists(const std::string &name)
Checks to see if the trigger name already exists.
This class serves as a central place to manage triggers for a Map.
TriggerNameMap m_triggerNameMap
Trigger name map.
An Instance is an "instantiation" of an Object at a Location.
TriggerController(Map *map)
Constructor.