Atoms Crowd
7.0.0
JointAimBehaviour.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/BlackboardValue.h>
12
13
namespace
Atoms
14
{
15
class
ATOMS_EXPORT
JointAimBehaviour
:
public
Behaviour
16
{
17
public
:
18
19
JointAimBehaviour
();
20
21
virtual
~
JointAimBehaviour
();
22
23
virtual
const
char
* typeName()
const override
;
24
25
static
const
char
* staticTypeName();
26
27
virtual
void
initialize(
BehaviourTreeContext
* context,
State
* data)
override
;
28
29
virtual
void
update(
BehaviourTreeContext
* context,
State
* data)
override
;
30
31
virtual
void
terminate(
BehaviourTreeContext
* context,
State
* data)
override
;
32
33
virtual
void
releaseData(
BehaviourTreeContext
* context,
State
* data)
override
;
34
35
virtual
void
setAttributes(
const
AtomsCore::MapMetadata
* attributes,
Blackboard
* blackboard)
override
;
36
37
virtual
void
getAttributes(
AtomsCore::MapMetadata
* attributes,
Blackboard
* blackboard)
override
;
38
39
virtual
void
getAttributeProperties(
AtomsCore::MapMetadata
* attributes)
override
;
40
41
static
Behaviour
* creator();
42
43
public
:
44
45
BlackboardStringValue
jointName;
46
47
BlackboardStringValue
directionalStartJointName;
48
49
BlackboardStringValue
directionalEndJointName;
50
51
BlackboardIntValue
axis;
52
53
BlackboardIntValue
upAxis;
54
55
BlackboardIntValue
hierarchyPropagation;
56
57
BlackboardIntValue
mode;
58
59
BlackboardVector3Value
target;
60
61
BlackboardVector3Value
upVector;
62
63
BlackboardVector3Value
customAxis;
64
65
BlackboardDoubleValue
weight;
66
67
BlackboardDoubleValue
additiveWeight;
68
69
BlackboardBoolValue
useUpVectorMetadata;
70
71
BlackboardBoolValue
additiveMode;
72
73
BlackboardBoolValue
projectAxis;
74
};
75
}
Atoms::Behaviour
Definition:
Behaviour.h:21
Atoms::BehaviourTreeContext
Definition:
BehaviourTreeContext.h:24
Atoms::Blackboard
Definition:
Blackboard.h:35
Atoms::BlackboardValue< std::string >
Atoms::JointAimBehaviour
Definition:
JointAimBehaviour.h:16
AtomsCore::MapMetadata
MapMetadata class.
Definition:
MapMetadata.h:24
Atoms
Atoms namespace.
Definition:
Agent.h:29
Atoms::Behaviour::State
Definition:
Behaviour.h:34
Atoms
Public
Atoms
BehaviourTree
Behaviours
JointAimBehaviour.h