Panda3D
|
00001 //////////////////////////////////////////////////////////////////////// 00002 // Filename : wander.h 00003 // Created by : Deepak, John, Navin 00004 // Date : 24 Oct 09 00005 //////////////////////////////////////////////////////////////////// 00006 // 00007 // PANDA 3D SOFTWARE 00008 // Copyright (c) Carnegie Mellon University. All rights reserved. 00009 // 00010 // All use of this software is subject to the terms of the revised BSD 00011 // license. You should have received a copy of this license along 00012 // with this source code in a file named "LICENSE." 00013 // 00014 //////////////////////////////////////////////////////////////////// 00015 00016 #ifndef _WANDER_H 00017 #define _WANDER_H 00018 00019 #include "aiCharacter.h" 00020 00021 class AICharacter; 00022 00023 class EXPCL_PANDAAI Wander { 00024 public: 00025 AICharacter *_ai_char; 00026 double _wander_radius; 00027 LVecBase3f _wander_target; 00028 float _wander_weight; 00029 int _flag; 00030 LVecBase3f _init_pos; 00031 double _area_of_effect; 00032 00033 Wander(AICharacter *ai_ch, double wander_radius, int flag, double aoe, float wander_weight); 00034 LVecBase3f do_wander(); 00035 ~Wander(); 00036 }; 00037 00038 #endif