40 void AddKeyframe(
int agentId,
float timeStamp,
float x,
float y,
74 inline std::vector<Core::Keyframe>&
This is the class that manages keyframes.
void RemoveKeyframe(const Core::Keyframe &keyframe)
Removes a keyframe from the keyframe list.
void DebugDump(void) const
Dumps keyframe information to the console for debugging purposes.
~KeyframeManager()
Private destructor for singleton pattern.
static KeyframeManager & Instance()
Returns the singleton instance of the KeyframeManager.
KeyframeManager()
Private constructor for singleton pattern.
std::vector< Core::Keyframe > m_Keyframes
KeyframeManager(const KeyframeManager &)=delete
KeyframeManager & operator=(const KeyframeManager &)=delete
std::vector< Core::Keyframe > & GetKeyframes()
Returns a reference to the list of keyframes.
void AddKeyframe(int agentId, float timeStamp, float x, float y, float z)
Adds a keyframe to the keyframe list using x, y, and z coordinates.
#define JSON
Macros To serialize an object you need to have the GetProperty() function in the object.
#define JSONMEMBERVECTOR(T, m)
A structure that represents a cartesian coordinate.
A structure representing an agent's position in cartesian space at a given point in time.