BVB Source Codes

CRYENGINE Show HideSpot.h Source code

Return Download CRYENGINE: download HideSpot.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /********************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name:   HideSpot.h
  6.    $Id$
  7.    Description: Hidespot-related structures
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.  
  12.  *********************************************************************/
  13.  
  14. #ifndef _HIDESPOT_H_
  15. #define _HIDESPOT_H_
  16.  
  17. #if _MSC_VER > 1000
  18.         #pragma once
  19. #endif
  20.  
  21. #include "SmartObjects.h"
  22.  
  23. // Description:
  24. //       Structure that contains critical hidespot information.
  25. struct SHideSpotInfo
  26. {
  27.         enum EHideSpotType
  28.         {
  29.                 eHST_TRIANGULAR,
  30.                 eHST_WAYPOINT,
  31.                 eHST_ANCHOR,
  32.                 eHST_SMARTOBJECT,
  33.                 eHST_VOLUME,
  34.                 eHST_DYNAMIC,
  35.                 eHST_INVALID,
  36.         };
  37.  
  38.         EHideSpotType type;
  39.         Vec3          pos;
  40.         Vec3          dir;
  41.  
  42.         SHideSpotInfo() : type(eHST_INVALID), pos(ZERO), dir(ZERO) {}
  43.         SHideSpotInfo(EHideSpotType type, const Vec3& pos, const Vec3& dir) : type(type), pos(pos), dir(dir) {}
  44. };
  45.  
  46. struct SHideSpot
  47. {
  48.         SHideSpot();
  49.         SHideSpot(SHideSpotInfo::EHideSpotType type, const Vec3& pos, const Vec3& dir);
  50.  
  51.         bool IsSecondary() const;
  52.  
  53.         //////////////////////////////////////////////////////////////////////////
  54.  
  55.         SHideSpotInfo info;
  56.  
  57.         // optional parameters - can be used with multiple hide spot types
  58.         const GraphNode*                     pNavNode;
  59.         const std::vector<const GraphNode*>* pNavNodes;
  60.         EntityId                             entityId; // The entity id of the source object for dynamic hidepoints.
  61.  
  62.         // parameters used only with one specific hide spot type
  63.         const ObstacleData* pObstacle;      // triangular
  64.         CQueryEvent         SOQueryEvent;   // smart objects
  65.         const CAIObject*    pAnchorObject;  // anchors
  66. };
  67.  
  68. typedef std::multimap<float, SHideSpot> MultimapRangeHideSpots;
  69.  
  70. #endif  // #ifndef _HIDESPOT_H_
  71.  
downloadHideSpot.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top