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 |
override bool Can | ( | PlayerBase | player, |
ActionTarget | target | ||
) |
override bool CanContinue | ( | PlayerBase | player, |
ActionTarget | target | ||
) |
References m_AllowedLiquidSource, and m_MaximalActionDistanceSq.
Referenced by ActionFillBottleBase::ActionCondition(), ActionFillBottleBaseCB::CreateActionComponent(), CreateConditionComponents(), ActionFillBottleBase::CreateConditionComponents(), ActionFishingNew::CreateConditionComponents(), ActionInteractLoopBase::CreateConditionComponents(), and OnFinishProgressServer().
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().
int GetLiquidType | ( | ) |
References m_LiquidType.
Referenced by InventoryItem::GetItemOverheatThreshold(), InventoryItem::GetTemperatureFreezeThreshold(), InventoryItem::GetTemperatureThawThreshold(), InventoryItem::IsLiquidPresent(), InventoryItem::OnAction(), Barrel_ColorBase::OnFreezeStateChangeServer(), OnFreezeStateChangeServer(), InventoryItem::OnQuantityChanged(), and InventoryItem::WriteVarsToCTX().
int GetSurfaceLiquidType | ( | ActionTarget | target | ) |
Check target surface liquid source first
Check target object for liquid source next
References LIQUID_NONE, and m_LiquidType.
protected int m_AllowedLiquidSource |
Referenced by Can(), and CCTWaterSurfaceEx().
protected int m_LiquidType = LIQUID_NONE |
CCTWaterSurface m_MaximalActionDistanceSq |
Referenced by Can(), and CCTWaterSurfaceEx().