iengine/movable.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2000-2001 by Jorrit Tyberghein 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CS_IENGINE_MOVABLE_H__ 00020 #define __CS_IENGINE_MOVABLE_H__ 00021 00029 #include "csutil/scf.h" 00030 #include "csutil/refarr.h" 00031 00032 class csMatrix3; 00033 class csReversibleTransform; 00034 class csVector3; 00035 00036 struct iMovable; 00037 struct iSector; 00038 struct iSectorList; 00039 struct iSceneNode; 00040 00045 struct iMovableListener : public virtual iBase 00046 { 00047 SCF_INTERFACE(iMovableListener, 2, 0, 0); 00048 00053 virtual void MovableChanged (iMovable* movable) = 0; 00055 virtual void MovableDestroyed (iMovable* movable) = 0; 00056 }; 00057 00083 struct iMovable : public virtual iBase 00084 { 00085 SCF_INTERFACE(iMovable, 2,0,0); 00086 00090 virtual iSceneNode* GetSceneNode () = 0; 00091 00101 virtual void SetSector (iSector* sector) = 0; 00102 00111 virtual void ClearSectors () = 0; 00112 00125 virtual iSectorList* GetSectors () = 0; 00126 00130 virtual bool InSector () const = 0; 00131 00142 virtual void SetPosition (iSector* home, const csVector3& v) = 0; 00143 00154 virtual void SetPosition (const csVector3& v) = 0; 00155 00164 virtual const csVector3& GetPosition () const = 0; 00165 00171 virtual const csVector3 GetFullPosition () const = 0; 00172 00187 virtual void SetTransform (const csMatrix3& matrix) = 0; 00188 00202 virtual void SetTransform (const csReversibleTransform& t) = 0; 00203 00214 virtual csReversibleTransform& GetTransform () = 0; 00215 00220 virtual csReversibleTransform GetFullTransform () const = 0; 00221 00232 virtual void MovePosition (const csVector3& v) = 0; 00233 00241 virtual void Transform (const csMatrix3& matrix) = 0; 00242 00248 virtual void AddListener (iMovableListener* listener) = 0; 00249 00253 virtual void RemoveListener (iMovableListener* listener) = 0; 00254 00266 virtual void UpdateMove () = 0; 00267 00273 virtual long GetUpdateNumber () const = 0; 00274 00291 virtual bool IsTransformIdentity () const = 0; 00292 00301 virtual bool IsFullTransformIdentity () const = 0; 00302 00312 virtual void TransformIdentity () = 0; 00313 }; 00314 00317 #endif // __CS_IENGINE_MOVABLE_H__
Generated for Crystal Space by doxygen 1.4.6