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

Data Structures

class  CCTWaterSurface
 

Functions

void CCTWaterSurfaceEx (float maximal_target_distance, int allowedLiquidSource)
 
override bool Can (PlayerBase player, ActionTarget target)
 
bool CheckLiquidSource (vector hitPos, string surfaceName, int liquidType, int allowedWaterSourceMask)
 
int GetSurfaceLiquidType (ActionTarget target)
 
override bool CanContinue (PlayerBase player, ActionTarget target)
 
int GetLiquidType ()
 

Variables

CCTWaterSurface m_MaximalActionDistanceSq
 
protected int m_AllowedLiquidSource
 
protected int m_LiquidType = LIQUID_NONE
 

Function Documentation

◆ Can()

◆ CanContinue()

override bool CanContinue ( PlayerBase  player,
ActionTarget  target 
)

◆ CCTWaterSurfaceEx()

◆ CheckLiquidSource()

bool CheckLiquidSource ( vector  hitPos,
string  surfaceName,
int  liquidType,
int  allowedWaterSourceMask 
)

Only return true if surface name is empty and

References g_Game, LIQUID_SALTWATER, and vector::Zero.

Referenced by Can().

◆ GetLiquidType()

◆ GetSurfaceLiquidType()

int GetSurfaceLiquidType ( ActionTarget  target)

Check target surface liquid source first

Check target object for liquid source next

References LIQUID_NONE, and m_LiquidType.

Variable Documentation

◆ m_AllowedLiquidSource

protected int m_AllowedLiquidSource

Referenced by Can(), and CCTWaterSurfaceEx().

◆ m_LiquidType

protected int m_LiquidType = LIQUID_NONE

◆ m_MaximalActionDistanceSq

CCTWaterSurface m_MaximalActionDistanceSq

Referenced by Can(), and CCTWaterSurfaceEx().