66 float offX, offY, newzoom;
68 int32_t audible_at_pos =
Clamp(100 - 100 *
Distance(cgo.
X + cgo.
Wdt / 2, cgo.
Y + cgo.
Hgt / 2, offX, offY) / 700, 0, 100);
72 AudiblePan = Clamp<int>(200 * (offX - cgo.
X - (cgo.
Wdt / 2)) / cgo.
Wdt, -100, 100);
86 if (parameters && parameters->
GetSize())
99 if (!fDraw)
return false;
102 if (!Visibility)
return true;
106 if (!fAsOverlay)
return false;
127 else fDraw = fDraw || (Visibility &
VIS_God);
C4Application Application
int32_t Hostile(int32_t plr1, int32_t plr2)
int32_t Distance(int32_t iX1, int32_t iY1, int32_t iX2, int32_t iY2)
T Clamp(T bval, T lbound, T rbound)
bool GetDrawPosition(const C4TargetFacet &cgo, float &resultx, float &resulty, float &resultzoom) const
int32_t lightFadeoutRange
void SetAudibilityAt(C4TargetFacet &cgo, int32_t iX, int32_t iY, int32_t player)
bool IsVisible(int32_t iForPlr, bool fAsOverlay) const
bool SetLightRange(int32_t iToRange, int32_t iToFadeoutRange)
bool SetLightColor(uint32_t iValue)
int32_t GetPropertyInt(C4PropertyName k, int32_t default_val=0) const
bool GetProperty(C4PropertyName k, C4Value *pResult) const
const C4Value & GetItem(int32_t iElem) const
C4ValueArray * getArray() const