|
Atoms Crowd
4.1.0
|
10 #include <Atoms/Globals.h>
11 #include <Atoms/Locomotion.h>
96 typedef std::map<std::string, LocomotionPtr> LocomotionsMap;
102 LocomotionsMap m_locomotionsMap;
104 mutable std::mutex m_mutex;
std::vector< std::string > locomotionNames()
Get all locomotion names.
void clear()
Remove all locomotions.
Animation clip.
Definition: Locomotion.h:33
static Locomotions & instance()
Singleton access.
void addLocomotion(const std::string &name, LocomotionPtr &locomotionPtr, bool replace=true)
Add a locomotion to the map.
void addLocomotion(const std::string &name, const Atoms::Locomotion &locomotion, bool replace=true)
Add a locomotion to the map.
LocomotionCPtr locomotion(const std::string &name) const
Return a locomotion.
void removeLocomotion(const std::string &name)
Remove a locomotion from the map.
unsigned int numLocomotions()
Get number of locomotions.
bool locomotionExists(const std::string &name)
Check if a locomotion exists.
Atoms namespace.
Definition: Agent.h:28
Locomotions manager.
Definition: Locomotions.h:23
AtomsPtr< Locomotion > LocomotionPtr
locomotion pointer
Definition: Locomotion.h:80
LocomotionPtr locomotion(const std::string &name)
Return a locomotion.
AtomsPtr< const Locomotion > LocomotionCPtr
locomotion const pointer
Definition: Locomotion.h:82