21 #include <boost/swap.hpp>
86 if (
unit_.get() != ptr.get()) {
void reset()
Reset the internal unit pointer, and deregister from the manager. This fake_unit_ptr is now dissassoc...
void place_on_fake_unit_manager(fake_unit_manager *d)
Place this on manager's fake_units_ dequeue.
Manages a list of fake units for the display object.
int remove_from_fake_unit_manager()
Removes this from whatever fake_units_ list it is on (if any).
fake_unit_manager * my_manager_
Raw pointer to the manager.
int remove_temporary_unit(internal_ptr_type)
Deregister a unit from this manager.
~fake_unit_ptr()
Removes this from the fake_units_ list if necessary.
internal_ptr unit_
Internal unit pointer.
void swap(fake_unit_ptr &o)
Pointer swap.
void place_temporary_unit(internal_ptr_type)
Register a unit with this manager.
fake_unit_ptr & operator=(fake_unit_ptr other)
Copy assignment operator using copy-and-swap idiom.
void swap(game_board &one, game_board &other)
Holds a temporary unit that can be drawn on the map without being placed in the unit_map.