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