26 #define C4D_VertexCpyPos (C4D_MaxVertex/2)
32 virtual int32_t
GetDensity(int32_t x, int32_t y)
const;
57 void Stretch(int32_t iCon,
bool bUpdateVertices);
58 void Jolt(int32_t iCon,
bool bUpdateVertices);
62 int32_t
GetX()
const {
return x; }
63 int32_t
GetY()
const {
return y; }
66 bool ContactCheck(int32_t cx, int32_t cy, uint32_t *border_hack_contacts=
nullptr,
bool collide_halfvehic=
false);
67 bool Attach(int32_t &cx, int32_t &cy,
BYTE cnat_pos);
68 bool LineConnect(int32_t tx, int32_t ty, int32_t cvtx, int32_t ld, int32_t oldx, int32_t oldy);
71 void CopyFrom(
C4Shape rFrom,
bool bCpyVertices,
bool fCopyVerticesFromSelf);
C4DensityProvider DefaultDensityProvider
int32_t Angle(int32_t iX1, int32_t iY1, int32_t iX2, int32_t iY2, int32_t iPrec)
virtual ~C4DensityProvider()=default
virtual int32_t GetDensity(int32_t x, int32_t y) const
bool AddVertex(int32_t iX, int32_t iY)
bool InsertVertex(int32_t iPos, int32_t tx, int32_t ty)
int32_t GetVertexY(int32_t iVertex)
void Stretch(int32_t iCon, bool bUpdateVertices)
int32_t VtxContactMat[C4D_MaxVertex]
bool CheckContact(int32_t cx, int32_t cy)
int32_t GetVertexX(int32_t iVertex)
void Jolt(int32_t iCon, bool bUpdateVertices)
void CopyFrom(C4Shape rFrom, bool bCpyVertices, bool fCopyVerticesFromSelf)
void CreateOwnOriginalCopy(C4Shape &rFrom)
bool ContactCheck(int32_t cx, int32_t cy, uint32_t *border_hack_contacts=nullptr, bool collide_halfvehic=false)
int32_t VtxCNAT[C4D_MaxVertex]
void GetVertexOutline(C4Rect &rRect)
int32_t VtxContactCNAT[C4D_MaxVertex]
int32_t VtxFriction[C4D_MaxVertex]
bool RemoveVertex(int32_t iPos)
void Rotate(C4Real Angle, bool bUpdateVertices)
bool CheckScaleToWalk(int x, int y)
int32_t GetVertexContact(int32_t iVtx, DWORD dwCheckMask, int32_t tx, int32_t ty, const C4DensityProvider &rDensityProvider=DefaultDensityProvider)
int32_t VtxY[C4D_MaxVertex]
void CompileFunc(StdCompiler *pComp, const C4Shape *default_shape)
bool Attach(int32_t &cx, int32_t &cy, BYTE cnat_pos)
int32_t VtxX[C4D_MaxVertex]
int32_t GetBottomVertex()
bool LineConnect(int32_t tx, int32_t ty, int32_t cvtx, int32_t ld, int32_t oldx, int32_t oldy)