![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 #pragma once 00007 00008 #include "bhaveSim/vrfLifeformBot.h" 00009 00010 #include <kyruntime.h> 00011 00012 #include "sandConstraint.h" 00013 00014 namespace BHAVE 00015 { 00016 //This class is a modified version of Lifeform that can treat 00017 //sand as a half speed modifier. That is, it can only travel 00018 //through sand at half its regular speed. 00019 class DtVrfModifiedLifeformBot : public DtVrfLifeformBot 00020 { 00021 public: 00022 // 00023 KY_DECLARE_BOT( DtVrfModifiedLifeformBot ) 00024 00025 DtVrfModifiedLifeformBot( ); 00026 virtual ~DtVrfModifiedLifeformBot(); 00027 00028 //Initialize the pathfinder options. This is done immediately after the pathfinder 00029 //is initialized 00030 virtual void initializePathfinderOptions(); 00031 00032 //Update Kynapse values from VR-Forces. 00033 virtual void updateFromVrf(); 00034 00035 protected: 00036 00037 //Modifier for goal 00038 DtSandConstraint mySandConstraint; 00039 }; 00040 00041 } //namespace BHAVE 00042