Atoms Crowd
7.0.0
RandomSequence.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/Composite.h>
11
#include <Atoms/BehaviourTree/BlackboardValue.h>
12
13
namespace
Atoms
14
{
15
class
ATOMS_EXPORT
RandomSequence
:
public
Composite
16
{
17
public
:
18
RandomSequence
();
19
20
virtual
~
RandomSequence
();
21
22
virtual
const
char
* typeName()
const override
;
23
24
virtual
void
initialize(
BehaviourTreeContext
* context,
State
* data)
override
;
25
26
virtual
void
update(
BehaviourTreeContext
* context,
State
* data)
override
;
27
28
virtual
void
terminate(
BehaviourTreeContext
* context,
State
* data)
override
;
29
30
virtual
void
releaseData(
BehaviourTreeContext
* context,
State
* data)
override
;
31
32
virtual
void
onChildUpdated(
BehaviourTreeContext
* context,
State
* data,
unsigned
int
childIndex,
unsigned
short
childStatus)
override
;
33
34
virtual
void
setAttributes(
const
AtomsCore::MapMetadata
* attributes,
Blackboard
* blackboard)
override
;
35
36
virtual
void
getAttributes(
AtomsCore::MapMetadata
* attributes,
Blackboard
* blackboard)
override
;
37
38
virtual
void
getAttributeProperties(
AtomsCore::MapMetadata
* attributes)
override
;
39
40
static
Behaviour
* creator();
41
42
private
:
43
44
BlackboardIntValue
m_seed;
45
46
bool
m_useAgentIdAsSeed;
47
48
bool
m_useAnimatedSeed;
49
};
50
}
Atoms::Behaviour
Definition:
Behaviour.h:21
Atoms::BehaviourTreeContext
Definition:
BehaviourTreeContext.h:24
Atoms::Blackboard
Definition:
Blackboard.h:35
Atoms::BlackboardValue< int >
Atoms::Composite
Definition:
Composite.h:18
Atoms::RandomSequence
Definition:
RandomSequence.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
Composites
RandomSequence.h