celtool/navigation.h
00001 /* 00002 Crystal Space Entity Layer 00003 Navigation Tools 00004 Copyright (C) 2007 by Dariusz Dawidowski 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public 00017 License along with this library; if not, write to the Free 00018 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef __CEL_TOOL_NAVIGATION__ 00022 #define __CEL_TOOL_NAVIGATION__ 00023 00024 #include "cssysdef.h" 00025 #include "csgeom/vector3.h" 00026 00027 struct iSector; 00028 struct iMapNode; 00029 struct iCelEntity; 00030 struct iPcMesh; 00031 00035 struct celNavigationInfo 00036 { 00038 bool success; 00040 bool visible; 00042 csVector3 angle; 00044 float distance; 00045 }; 00046 00050 struct celNavigationTools 00051 { 00058 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00059 const char* tag, const csVector3& vector); 00066 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00067 const csVector3& vector); 00075 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00076 const char* navigator_tag, iCelEntity* entity, 00077 const char* entity_tag); 00085 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00086 iCelEntity* entity, const char* entity_tag); 00093 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00094 const char* tag, iMapNode* node); 00101 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00102 iMapNode* node); 00103 }; 00104 00105 #endif // __CEL_TOOL_NAVIGATION__
Generated for CEL: Crystal Entity Layer 1.2 by doxygen 1.4.7
