30 , my_manager_(nullptr)
35 , my_manager_(ptr.my_manager_)
37 ptr.my_manager_ =
nullptr;
95 if (
unit_.get() != ptr.get()) {
Manages a list of fake units for the display object.
void place_temporary_unit(internal_ptr_type)
Register a unit with this manager.
int remove_temporary_unit(internal_ptr_type)
Deregister a unit from this manager.
Holds a temporary unit that can be drawn on the map without being placed in the unit_map.
void reset()
Reset the internal unit pointer, and deregister from the manager.
fake_unit_manager * my_manager_
Raw pointer to the manager.
~fake_unit_ptr()
Removes this from the fake_units_ list if necessary.
fake_unit_ptr & operator=(fake_unit_ptr other)
Copy assignment operator using copy-and-swap idiom.
void swap(fake_unit_ptr &o)
Pointer swap.
int remove_from_fake_unit_manager()
Removes this from whatever fake_units_ list it is on (if any).
internal_ptr unit_
Internal unit pointer.
void place_on_fake_unit_manager(fake_unit_manager *d)
Place this on manager's fake_units_ dequeue.
void swap(config &lhs, config &rhs)
Implement non-member swap function for std::swap (calls config::swap).
fake_unit_manager * fake_units