VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
surrenderSearch.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: surrenderSrch.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtSurrenderSearch_H_
13 #define DtSurrenderSearch_H_
14 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlMachineTypes.h>
18 
19 
20 class DtVrfObject;
21 
30 
33 {
34 public:
35 
38 
40  virtual ~DtSurrenderSearch();
41 
42  void setSurrenderTestValue(bool);
43  bool surrenderTestValue() const;
44 
45 protected:
46 
48  virtual bool initializeSearch(const DtVrfObjectManager* vrfObjectManager);
49 
51  virtual bool inspectEntity(const DtVrfObject& entity);
52 
56  virtual bool searchSubordinates(const DtVrfObject& pAggEntity, bool excludeDestroyed);
57 
59  virtual bool isValidEntity(const DtVrfObject& entity);
60 
61 private:
64 
67 
68 protected:
70 };
71 
72 
74 {
76 }
77 
79 {
80  return mySurrenderTestVal;
81 }
82 
83 #endif
virtual bool initializeSearch(const DtVrfObject &entity)
Override initializeSearch if you need to do some initialization at the start of the search process...
bool mySurrenderTestVal
Definition: surrenderSearch.h:69
virtual bool inspectEntity(const DtVrfObject &entity)
Override inspectEntity to do any tests you want to do on base entities that are found in the search...
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtSimSubordinateSearch & operator=(const DtSimSubordinateSearch &orig)
assignment operator; not implemented
virtual bool searchSubordinates(const DtVrfObject &entity, bool excludeDestroyed)
SearchSubordinates will call searchSubtree on all the immediate children of a given pseudo aggregate...
class DtSurrenderSearch:
Definition: surrenderSearch.h:32
void setSurrenderTestValue(bool)
Definition: surrenderSearch.h:73
class DtSimSubordinateSearch:
Definition: simSubordinateSearch.h:23
#define DT_DLL_vrfplanmgr
This file is used to determine how to build.
Definition: vrfplanmgrDefines.h:28
class DtVrfObjectManager:
Definition: vrfObjectManager.h:202
bool surrenderTestValue() const
Definition: surrenderSearch.h:78
virtual bool isValidEntity(const DtVrfObject &entity)
Returns true if the object is an aggregate, a platform, or a lifeform or cultural feature...

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)