BVB Source Codes

CRYENGINE Show TeleportOp.h Source code

Return Download CRYENGINE: download TeleportOp.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #ifndef TeleportOp_h
  6.         #define TeleportOp_h
  7.  
  8.         #include "EnterLeaveUpdateGoalOp.h"
  9.         #include <CrySystem/TimeValue.h>
  10.  
  11. // Teleports a pipe user to a specific location
  12. class TeleportOp : public EnterLeaveUpdateGoalOp
  13. {
  14. public:
  15.         TeleportOp();
  16.         TeleportOp(const XmlNodeRef& node);
  17.         TeleportOp(const TeleportOp& rhs);
  18.  
  19.         virtual void Update(CPipeUser& pipeUser) override;
  20.         virtual void Serialize(TSerialize serializer) override;
  21.  
  22.         void         SetDestination(const Vec3& position, const Vec3& direction);
  23.         void         SetWaitUntilAgentIsNotMovingBeforeTeleport();
  24. private:
  25.  
  26.         void Teleport(CPipeUser& pipeUser);
  27.         bool IsAgentMoving(CPipeUser& pipeUser);
  28.  
  29.         Vec3 m_destinationPosition;
  30.         Vec3 m_destinationDirection;
  31.         bool m_waitUntilAgentIsNotMoving;
  32. };
  33.  
  34. #endif // TeleportOp_h
  35.  
downloadTeleportOp.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