Definition at line 41 of file halo.cpp.
◆ halo_impl()
halo::halo_impl::halo_impl |
( |
| ) |
|
|
inlineexplicit |
impl's of exposed functions
Definition at line 125 of file halo.cpp.
◆ add()
int halo::halo_impl::add |
( |
int |
x, |
|
|
int |
y, |
|
|
const std::string & |
image, |
|
|
const map_location & |
loc, |
|
|
ORIENTATION |
orientation = NORMAL , |
|
|
bool |
infinite = true |
|
) |
| |
Definition at line 304 of file halo.cpp.
References changing_haloes, DBG_HL, ERR_HL, halo_id, haloes, id, invalidated_haloes, loc, utils::split(), utils::square_parenthetical_split(), and utils::stoi().
◆ remove()
void halo::halo_impl::remove |
( |
int |
handle | ) |
|
◆ render()
void halo::halo_impl::render |
( |
const rect & |
region | ) |
|
◆ set_location()
void halo::halo_impl::set_location |
( |
int |
handle, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ update()
void halo::halo_impl::update |
( |
| ) |
|
◆ changing_haloes
std::set<int> halo::halo_impl::changing_haloes |
|
private |
Haloes that have an animation or expiration time need to be checked every frame and are stored in this set.
Definition at line 118 of file halo.cpp.
Referenced by add(), and update().
◆ deleted_haloes
std::set<int> halo::halo_impl::deleted_haloes |
|
private |
Upon deleting, a halo isn't deleted but added to this set, upon unrendering the image is unrendered and deleted.
Definition at line 112 of file halo.cpp.
Referenced by remove(), and update().
◆ halo_id
int halo::halo_impl::halo_id |
|
private |
◆ haloes
std::map<int, effect> halo::halo_impl::haloes |
|
private |
◆ invalidated_haloes
std::set<int> halo::halo_impl::invalidated_haloes |
|
private |
Upon unrendering, an invalidation list is send.
All haloes in that area and the other invalidated haloes are stored in this set. Then there'll be tested which haloes overlap and they're also stored in this set.
Definition at line 106 of file halo.cpp.
Referenced by add().
The documentation for this class was generated from the following file: