VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
northEvaluator.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 
9 
10 //class MyEvaluator:
11 //
12 //Instances of MyEvaluator are used to perform the evaluation for a
13 //MyConditionalExpression using a MySearch.
14 
15 namespace vrfAddConditionalExample
16 {
18  {
19  public:
20 
21  //constructor
22  MyEvaluator();
23 
24  //destructor
25  virtual ~MyEvaluator();
26 
27  //copy constructor
28  MyEvaluator(const MyEvaluator& orig);
29 
30  //assignment operator
31  MyEvaluator& operator=(const MyEvaluator& orig);
32 
33  //clone operator
34  virtual DtEvaluator* clone();
35 
36  //Evaluate this conditional expression for the entity with the given
37  //entity name, in the context of the given DtSimManager,
38  //and return the current result. The condExpr passed in must be of type
39  //MyConditionalExpression.
40  //Checks to see if the entity in the MyConditionalExpression is
41  //facing north using a MySearch. If so, it returns true. The the modifier
42  //flag in MyConditionalExpression is passed to the search which optionally
43  //expands the test to return true if the entity and/or any of its
44  //subordinates are facing north.
45  virtual bool evaluate(DtSimCondExpr* condExpr,
46  const DtUUID& object, DtSimManager* simManager, const DtPlan* plan = 0) const;
47 
48  public:
49 
50  //Returns a newly created MyEvaluator.
51  static DtEvaluator * creator();
52 
53  };
54 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)