/* Crystal Space Entity Layer Copyright (C) 2001 by Jorrit Tyberghein This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __CEL_PF_MOVE__ #define __CEL_PF_MOVE__ #include "cstypes.h" #include "csutil/scf.h" struct iSector; struct iPcMesh; struct iPcMovableConstraint; class csVector3; /** * Property ID used when the movable position changes (for use with * property change callbacks). */ #define CEL_PCMOVABLE_PROPERTY_POSITION 1 #define CEL_MOVE_FAIL 0 #define CEL_MOVE_SUCCEED 1 #define CEL_MOVE_PARTIAL 2 /** * Control moving an iPcMesh. */ struct iPcMovable : public virtual iBase { SCF_INTERFACE (iPcMovable, 0, 0, 1); /** * Set mesh to move. If not set a default mesh will be found * from the parent entity. */ virtual void SetMesh (iPcMesh* mesh) = 0; /** * Get the current mesh on which we're working. */ virtual iPcMesh* GetMesh () = 0; /** * Move object while checking constraints. This routine will ignore * the previous position and will just check if it is possible * to move to the given position. * Returns: *