Atoms Crowd  7.0.0
ConditionBehaviour.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/BehaviourTree/Behaviour.h>
11 #include <Atoms/BehaviourTree/ConditionValue.h>
12 
13 namespace Atoms
14 {
15  class ATOMS_EXPORT ConditionBehaviour : public Behaviour
16  {
17  public:
18 
19 
21 
22  virtual ~ConditionBehaviour();
23 
24  static const char* staticTypeName();
25 
26  virtual const char* typeName() const override;
27 
28  virtual void update(BehaviourTreeContext* context, State* data) override;
29 
30  virtual void setAttributes(const AtomsCore::MapMetadata* attributes, Blackboard* blackboard) override;
31 
32  virtual void getAttributes(AtomsCore::MapMetadata* attributes, Blackboard* blackboard) override;
33 
34  virtual void getAttributeProperties(AtomsCore::MapMetadata* attributes) override;
35 
36  static Behaviour* creator();
37 
38  public:
39 
40  ConditionValue condition;
41  };
42 }
Definition: Behaviour.h:21
Definition: BehaviourTreeContext.h:24
Definition: Blackboard.h:35
Definition: ConditionBehaviour.h:16
Definition: ConditionValue.h:16
MapMetadata class.
Definition: MapMetadata.h:24
Atoms namespace.
Definition: Agent.h:29
Definition: Behaviour.h:34