Atoms Crowd  7.0.0
StateMachineModule.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  public:
17 
19 
20  virtual ~StateMachineModule();
21 
22  void agentsCreated(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
23 
24  void preFrame(Atoms::AgentGroup* agentGroup = nullptr);
25 
26  void initFrame(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
27 
28  void endFrame(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
29 
30  void draw(Atoms::DrawContext* context, const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
31 
32  static Atoms::BehaviourModule* creator(const std::string& parameter);
33 
34  const std::vector<std::string> collectClips(Atoms::Agent* agent) const;
35 
36  public:
37  std::vector<std::pair<AtomsCore::Vector3, std::string>> m_debugData;
38 
39  bool m_debugMode;
40  bool m_hasAgentSelected;
41  };
42 }
43 
44 
Agent group.
Definition: AgentGroup.h:36
Agent.
Definition: Agent.h:44
Behaviour module.
Definition: BehaviourModule.h:32
Definition: DrawContext.h:17
Definition: StateMachineModule.h:15
void preFrame(Atoms::AgentGroup *agentGroup=nullptr)
Pre frame.
void endFrame(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
End frame.
void initFrame(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Init frame.
void draw(Atoms::DrawContext *context, const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Draw.
void agentsCreated(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Agents Created.