Maintain a circular buffer of recent commands, add to crashlog.
[openttd-joker.git] / src / overlay_cmd.h
bloba8b43832f11cc134790caa5539ed507cf417d291
1 /* $Id$ */
3 /** @file overlay_cmd.h Functions related to overlays. */
5 #ifndef OVERLAY_CMD_H
6 #define OVERLAY_CMD_H
8 #include "tile_type.h"
9 #include "tile_cmd.h"
10 #include "station_base.h"
11 #include <set>
13 class Overlays {
15 std::set<const Station *> catchmentOverlay;
17 protected:
18 static Overlays* instance;
20 public:
21 static Overlays* Instance();
23 void AddStation(const Station* st);
25 void RemoveStation(const Station *st);
27 void ToggleStation(const Station* st);
29 void Clear();
31 bool IsTileInCatchmentArea(const TileInfo* ti, CatchmentType type);
33 bool HasStation(const Station* st);
35 virtual ~Overlays();
38 #endif // OVERLAY_CMD_H