propclass/steer.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2001 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __CEL_PF_STEER__ 00021 #define __CEL_PF_STEER__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 #include "physicallayer/entity.h" 00026 00027 struct iPcLinearMovement; 00028 00069 struct iPcSteer : public virtual iBase 00070 { 00071 SCF_INTERFACE (iPcSteer, 1, 0, 0); 00072 00077 virtual bool Vigilant () = 0; 00089 virtual bool Seek (iSector* sector, const csVector3& position) = 0; 00090 00100 virtual bool Flee (iSector* sector, const csVector3& position) = 0; 00101 00117 virtual bool Pursue (iCelEntity* target, float max_prediction)=0; 00118 00123 virtual void CheckArrivalOn (float radius) = 0; 00124 00128 virtual void CheckArrivalOff () = 0; 00129 00135 virtual void CollisionAvoidanceOn (float lookahead, float weight) = 0; 00136 00140 virtual void CollisionAvoidanceOff () = 0; 00141 00142 00150 virtual void CohesionOn (iCelEntityList* targets, float radius, float max_radius, float weight) = 0; 00151 00155 virtual void CohesionOff () = 0; 00156 00163 virtual void SeparationOn (iCelEntityList* targets, float radius, float weight) = 0; 00164 00168 virtual void SeparationOff () = 0; 00169 00175 virtual void DirectionMatchingOn (iCelEntityList* targets, float weight) = 0; 00176 00180 virtual void DirectionMatchingOff () = 0; 00181 00186 virtual void Interrupt () = 0; 00187 00191 virtual iSector* GetSector () const = 0; 00192 00196 virtual const csVector3& GetPosition () const = 0; 00197 00201 virtual float RandomBinomial (float rate) = 0; 00202 00207 virtual void SetDelayRecheck (int delay) = 0; 00208 00212 virtual bool IsMoving () const = 0; 00213 }; 00214 00215 #endif // __CEL_PF_STEER__
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1