PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CCTWaterSurface Class Reference

Private Member Functions

void CCTWaterSurface (float maximal_target_distance=UAMaxDistances.DEFAULT, string surfaceType="")
 
override bool Can (PlayerBase player, ActionTarget target)
 
override bool CanContinue (PlayerBase player, ActionTarget target)
 

Private Attributes

protected const int HEIGHT_DIFF_LIMIT_METERS = 1.0
 
protected float m_MaximalActionDistanceSq
 
protected string m_SurfaceType
 
protected ref array< stringm_AllowedSurfaceList
 DEPRECATED.
 

Constructor & Destructor Documentation

◆ CCTWaterSurface()

void CCTWaterSurface ( float  maximal_target_distance = UAMaxDistances.DEFAULT,
string  surfaceType = "" 
)
inlineprivate

Member Function Documentation

◆ Can()

override bool Can ( PlayerBase  player,
ActionTarget  target 
)
inlineprivate

use hit position from ActionTarget otherwise player's position

special handling for sea

References Math::AbsFloat(), Surface::AllowedWaterSurface(), vector::DistanceSq(), g_Game, HEIGHT_DIFF_LIMIT_METERS, m_AllowedSurfaceList, and m_MaximalActionDistanceSq.

◆ CanContinue()

override bool CanContinue ( PlayerBase  player,
ActionTarget  target 
)
inlineprivate

Field Documentation

◆ HEIGHT_DIFF_LIMIT_METERS

protected const int HEIGHT_DIFF_LIMIT_METERS = 1.0
private

Referenced by Can().

◆ m_AllowedSurfaceList

protected ref array<string> m_AllowedSurfaceList
private

DEPRECATED.

Referenced by Can(), and CCTWaterSurface().

◆ m_MaximalActionDistanceSq

protected float m_MaximalActionDistanceSq
private

Referenced by Can(), and CCTWaterSurface().

◆ m_SurfaceType

protected string m_SurfaceType
private

Referenced by CCTWaterSurface().


The documentation for this class was generated from the following file: