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 #include "celtool/celtoolextern.h" 00028 00029 struct iSector; 00030 struct iMapNode; 00031 struct iCelEntity; 00032 struct iPcMesh; 00033 00037 struct celNavigationInfo 00038 { 00040 bool success; 00042 bool visible; 00044 csVector3 angle; 00046 float distance; 00047 }; 00048 00052 struct CEL_CELTOOL_EXPORT celNavigationTools 00053 { 00060 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00061 const char* tag, const csVector3& vector); 00068 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00069 const csVector3& vector); 00077 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00078 const char* navigator_tag, iCelEntity* entity, 00079 const char* entity_tag); 00087 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00088 iCelEntity* entity, const char* entity_tag); 00095 static celNavigationInfo GetNavigationInfo (iCelEntity* navigator, 00096 const char* tag, iMapNode* node); 00103 static celNavigationInfo GetNavigationInfo (iPcMesh* navigator, 00104 iMapNode* node); 00105 }; 00106 00107 #endif // __CEL_TOOL_NAVIGATION__
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1