38 #include <boost/bind.hpp> 44 WorldPtr old_world =
world_.lock();
60 WorldPtr world = other.
world_.lock();
74 WorldPtr old_world =
world_.lock();
85 WorldPtr old_world =
world_.lock();
95 WorldPtr old_world =
world_.lock();
Maintain a diff list of changes that have happened to a World.
World::ObserverHandle observer_handle_
Represents an action that occurred on an object in the world. Several bits may be set indicating seve...
void reset()
Turn off recording and erase all previously recorded changes.
Generic interface to collision detection.
void setWorld(const WorldPtr &world)
Set which world to record. Records all objects in old world (if any) as DESTROYED and all objects in ...
void clearChanges()
Clear the internally maintained vector of changes.
void notify(const World::ObjectConstPtr &, World::Action)
Notification function.
std::weak_ptr< World > world_
std::map< std::string, World::Action > changes_
void swap(scoped_ptr< T > &, scoped_ptr< T > &)