VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
addConditional
addConditionalSim
search.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfobjcore/simSubordinateSearch.h
"
9
10
11
class
DtVrfObject
;
12
13
//
14
//class MySearch:
15
//
16
//Instances of MySearch are used to search an entity or an entire aggregate
17
//structure for entities that are facing north. If any are detected the search
18
//is terminated. Call the searchBelow() function to do the actual
19
//search. Test the result by calling result().
20
//
21
22
class
MySearch
:
public
DtSimSubordinateSearch
23
{
24
public
:
25
//default constructor
26
MySearch
();
27
28
//destructor
29
virtual
~MySearch
();
30
31
protected
:
32
//Function to initialize the search. Sets myAnyFlag and myResult based on
33
//myModifier. If the "ANY" modifier is used, myResult is intialized to
34
//false (and set to true on the first success) otherwise myResult
35
//is set to true (and set to false on the first failure).
36
virtual
bool
initializeSearch
(
const
DtVrfObject
& entity);
37
38
//Test any and all entities to find one that is destroyed and sets
39
//myResult. If the test is true and the any flag is set, it returns true
40
//(which continues the search). Otherwise false is returned to end the
41
//search.
42
virtual
bool
inspectEntity
(
const
DtVrfObject
& entity);
43
44
//Controls whether subordinates of a specified pseudo-aggregate are
45
//searched. If the "ANY" modifier was specified, it calls the base
46
//class version, otherwise it just returns false.
47
virtual
bool
searchSubordinates
(
48
const
DtVrfObject
& pAggEntity,
bool
excludeDestroyed);
49
50
protected
:
51
//copy constructor; not implemented
52
MySearch
(
const
MySearch
& orig);
53
54
//assignment operator; not implemented
55
MySearch
&
operator=
(
const
MySearch
& orig);
56
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)