Atoms Crowd  7.0.0
VelocityToState.h
1 #pragma once
2 // ===========================================================================
3 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
4 //
5 // Use of this software is subject to the terms of the Toolchefs license
6 // agreement provided at the time of installation or download, or which
7 // otherwise accompanies this software in either electronic or hard copy form.
8 // ===========================================================================
9 
10 #include <Atoms/BehaviourModule.h>
11 
12 namespace AtomsModules
13 {
15  {
16  std::vector<int> stateIds;
17  std::vector<double> stateVelocities;
18  };
19 
21  {
22  public:
23 
25 
26  virtual ~VelocityToState();
27 
28  void agentsCreated(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
29 
30  void initFrame(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
31 
32  static Atoms::BehaviourModule* creator(const std::string& parameter);
33 
34  public:
35 
36  std::map<std::string, StateMachineVelocities> m_stateMachineVelocities;
37  };
38 }
Agent group.
Definition: AgentGroup.h:36
Behaviour module.
Definition: BehaviourModule.h:32
Definition: VelocityToState.h:21
void agentsCreated(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Agents Created.
void initFrame(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Init frame.
Definition: VelocityToState.h:15