![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: checkEntityIdLevelSearch.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtCheckEntityIdLevelSearch_H_ 00013 #define DtCheckEntityIdLevelSearch_H_ 00014 00015 #include <vlutil/vlString.h> 00016 #include <vlutil/vlMachineTypes.h> 00017 #include "vrfobjcore/subSearch.h" 00018 00019 00020 class DtVrfObject; 00021 00029 00030 #include "vrfplanmgr/vrfplanmgrDefines.h" 00031 class DT_DLL_vrfplanmgr DtCheckEntityIdLevelSearch : public DtSimSubordinateSearch 00032 { 00033 public: 00034 00036 DtCheckEntityIdLevelSearch(); 00037 00039 virtual ~DtCheckEntityIdLevelSearch(); 00040 00041 void setCombatIdLevel(int i); 00042 void setEntity(const DtVrfObject*); 00043 00044 protected: 00045 00047 virtual bool initializeSearch(const DtVrfObjectManager* vrfObjectManager); 00048 00050 virtual bool inspectEntity(const DtVrfObject& entity); 00051 00055 virtual bool searchSubordinates( 00056 const DtVrfObject& pAggEntity); 00057 00058 private: 00060 DtCheckEntityIdLevelSearch(const DtCheckEntityIdLevelSearch& orig); 00061 00063 DtCheckEntityIdLevelSearch& operator=(const DtCheckEntityIdLevelSearch& orig); 00064 00065 protected: 00066 int myCombatIdLevel; 00067 const DtVrfObject* myEntity; 00068 }; 00069 00070 inline void DtCheckEntityIdLevelSearch::setCombatIdLevel(int i) 00071 { 00072 myCombatIdLevel = i; 00073 } 00074 00075 inline void DtCheckEntityIdLevelSearch::setEntity(const DtVrfObject* o) 00076 { 00077 myEntity = o; 00078 } 00079 00080 #endif