propclass/move.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_MOVE__ 00021 #define __CEL_PF_MOVE__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 00026 struct iSector; 00027 struct iPcMesh; 00028 struct iPcMovableConstraint; 00029 class csVector3; 00030 00035 #define CEL_PCMOVABLE_PROPERTY_POSITION 1 00036 00037 #define CEL_MOVE_FAIL 0 00038 #define CEL_MOVE_SUCCEED 1 00039 #define CEL_MOVE_PARTIAL 2 00040 00044 struct iPcMovable : public virtual iBase 00045 { 00046 SCF_INTERFACE (iPcMovable, 0, 0, 1); 00047 00052 virtual void SetMesh (iPcMesh* mesh) = 0; 00053 00057 virtual iPcMesh* GetMesh () = 0; 00058 00069 virtual int Move (iSector* sector, const csVector3& pos) = 0; 00070 00081 virtual int Move (const csVector3& relpos) = 0; 00082 00086 virtual void AddConstraint (iPcMovableConstraint* constraint) = 0; 00087 00091 virtual void RemoveConstraint (iPcMovableConstraint* constraint) = 0; 00092 00096 virtual void RemoveAllConstraints () = 0; 00097 }; 00098 00102 struct iPcMovableConstraint : public virtual iBase 00103 { 00104 SCF_INTERFACE (iPcMovableConstraint, 0, 0, 1); 00105 00119 virtual int CheckMove (iSector* sector, const csVector3& from, 00120 const csVector3& to, csVector3& pos) = 0; 00121 }; 00122 00123 #endif // __CEL_PF_MOVE__ 00124
Generated for CEL: Crystal Entity Layer by doxygen 1.4.7