VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
modifierGroundPlatformDetectAccident.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form.
5 */
6 
7 
8 
9 
13 
14 #ifndef KY_DtModifierGroundPlatformDetectAccident_H
15 #define KY_DtModifierGroundPlatformDetectAccident_H
16 
18 #include <kyruntime/pathfinding/idetectaccident.h>
19 
20 namespace Kaim
21 {
31 {
32 public:
33  KY_DECLARE_DETECTACCIDENT(DtModifierGroundPlatformDetectAccident)
34 
35 public:
39  m_accidentRatio(0.5f),
40  m_predictionDate(0.0f){}
41 
42  virtual void ReInit();
43 
44  virtual KyBool DetectAccident();
45  virtual void Update();
46 
48  KyFloat32 AccidentRatio() const { return m_accidentRatio; }
49 
54  void AccidentRatio(KyFloat32 val)
55  {
56  KY_FUNCTION("DtModifierGroundPlatformDetectAccident::AccidentRatio");
57  KY_ASSERT(val > 0.f, ("Invalid value (%.2f), 'AccidentRatio' must be > 0.", val));
58  m_accidentRatio = val;
59  }
60 
61 
62 protected:
63  virtual void OnSetPathFinder();
64 
65  KyFloat32 m_accidentRatio;
66 
68  KyFloat32 m_predictionDate;
74 };
75 
76 }
77 
78 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)