Atoms Crowd  4.1.0
StateMachine.impl.h
1 // ===========================================================================
2 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
3 //
4 // Use of this software is subject to the terms of the Toolchefs license
5 // agreement provided at the time of installation or download, or which
6 // otherwise accompanies this software in either electronic or hard copy form.
7 // ===========================================================================
8 
9 namespace Atoms
10 {
12  {
13  m_animationStates.push_back(state);
14  m_animationStates.back().updateValidClips();
15  }
16 
17  const std::vector<AnimationState>& StateMachine::animationStates() const
18  {
19  return m_animationStates;
20  }
21 
22  const std::map<std::pair<int, int>, AnimationState>& StateMachine::connections() const
23  {
24  return m_connections;
25  }
26 
27  void StateMachine::setName(const std::string& name)
28  {
29  m_name = name;
30  }
31 
32  const std::string& StateMachine::name() const
33  {
34  return m_name;
35  }
36 }
Atoms::StateMachine::name
const std::string & name() const
Gets the name.
Definition: StateMachine.impl.h:32
Atoms::StateMachine::animationStates
const std::vector< AnimationState > & animationStates() const
Gets animation states.
Definition: StateMachine.impl.h:17
Atoms::AnimationState
Animation State.
Definition: AnimationState.h:25
Atoms::StateMachine::addAnimationState
void addAnimationState(const AnimationState &state)
Adds animation state.
Definition: StateMachine.impl.h:11
Atoms
Atoms namespace.
Definition: Agent.h:28
Atoms::StateMachine::setName
void setName(const std::string &name)
Sets the name.
Definition: StateMachine.impl.h:27
Atoms::StateMachine::connections
const std::map< std::pair< int, int >, AnimationState > & connections() const
Gets of all connections.
Definition: StateMachine.impl.h:22