Arrows: notify observers of updates.

This commit is contained in:
Gabriel Morin 2010-05-27 19:04:35 +00:00
parent b7d3a2a9bb
commit b916d8482d

View file

@ -13,16 +13,19 @@ arrow::arrow(): layer_(display::LAYER_ARROWS)
void arrow::set_path(const std::list<map_location> path)
{
path_ = path;
notify_arrow_changed();
}
void arrow::set_color(const SDL_Color color)
{
color_ = color;
notify_arrow_changed();
}
void arrow::set_layer(const display::tdrawing_layer & layer)
{
layer_ = layer;
notify_arrow_changed();
}
void arrow::add_observer(arrow_observer & observer)