33 typedef std::shared_ptr<halo_record>
handle;
70 std::shared_ptr<halo_impl>
impl_;
83 halo_record(
int id,
const std::shared_ptr<halo_impl> & my_manager);
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
RAII object which manages a halo.
halo_record(const halo_record &)=delete
std::weak_ptr< halo_impl > my_manager_
halo_record()
halo::halo_record implementation
halo_record & operator=(const halo_record &)=delete
std::shared_ptr< halo_impl > impl_
void update()
Process animations, remove deleted halos, and invalidate screen regions now requiring redraw.
void set_location(const handle &h, int x, int y)
Set the position of an existing haloing effect, according to its handle.
handle add(int x, int y, const std::string &image, const map_location &loc, halo::ORIENTATION orientation=NORMAL, bool infinite=true)
Add a haloing effect using 'image centered on (x,y).
void remove(const handle &h)
Remove the halo with the given handle.
void render(const rect &r)
Render halos in region.
std::shared_ptr< halo_record > handle
Functions to load and save images from/to disk.
Encapsulates the map of the game.
An abstract description of a rectangle with integer coordinates.