BVB Source Codes

CRYENGINE Show CoverScorer.h Source code

Return Download CRYENGINE: download CoverScorer.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __CoverScorer_h__
  4. #define __CoverScorer_h__
  5. #pragma once
  6.  
  7. #include "Cover.h"
  8.  
  9. struct ICoverLocationScorer
  10. {
  11.         virtual ~ICoverLocationScorer(){}
  12.         struct Params
  13.         {
  14.                 Vec3            location;
  15.                 Vec3            direction;
  16.                 float           height;
  17.  
  18.                 Vec3            userLocation;
  19.                 float           totalLength;
  20.  
  21.                 ECoverUsageType usage;
  22.  
  23.                 Vec3            target;
  24.         };
  25.  
  26.         virtual float Score(const Params& params) const = 0;
  27. };
  28.  
  29. struct DefaultCoverScorer : public ICoverLocationScorer
  30. {
  31. public:
  32.         float         ScoreByDistance(const ICoverLocationScorer::Params& params) const;
  33.         float         ScoreByDistanceToTarget(const ICoverLocationScorer::Params& params) const;
  34.         float         ScoreByAngle(const ICoverLocationScorer::Params& params) const;
  35.         float         ScoreByCoverage(const ICoverLocationScorer::Params& params) const;
  36.  
  37.         virtual float Score(const ICoverLocationScorer::Params& params) const;
  38. };
  39.  
  40. #endif //__CoverScorer_h__
  41.  
downloadCoverScorer.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