170 pthrow * iDir + cObj->
xdir, -pthrow + cObj->
ydir, pthrow * iDir);
190 static bool CornerScaleOkay(
C4Object *cObj, int32_t iRangeX, int32_t iRangeY)
192 int32_t cty = cObj->
GetY() - iRangeY;
196 ctx = cObj->
GetX() - iRangeX;
200 ctx = cObj->
GetX() + iRangeX;
214 if (!CornerScaleOkay(cObj, iRangeX, iRangeY))
308 TXDir = -iPhysicalWalk;
312 TXDir = +iPhysicalWalk;
381 if (!pThing->
Enter(pTarget,
true,
true, &fRejectCollect))
434 bool isHanglingOrSwimming =
false;
442 isHanglingOrSwimming =
true;
445 int32_t iOutposReduction = 1;
509 if (!cObj || !pTarget)
518 if (fBlowStopped && punch > 1)
577 if (iComDir == iSample)
return true;
578 if (iComDir % 8 + 1 == iSample)
return true;
579 if (iComDir == iSample % 8 + 1 )
return true;
const uint32_t OCF_FullCon
const int32_t C4D_Grab_Put
const int32_t C4D_Grab_Get
#define C4FxCall_EngGetPunched
void GameMsgObjectError(const char *szText, C4Object *pTarget, bool Red)
#define PSF_QueryCatchBlow
const char * LoadResStr(const char *id)
bool ObjectComThrow(C4Object *cObj, C4Object *pThing)
bool ObjectComPunch(C4Object *cObj, C4Object *pTarget, int32_t punch)
void ObjectComStopDig(C4Object *cObj)
bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing)
bool ObjectComCancelAttach(C4Object *cObj)
bool ObjectComLetGo(C4Object *cObj, int32_t xdirf)
bool ObjectActionScale(C4Object *cObj, int32_t dir)
bool ObjectComTake(C4Object *cObj)
bool ObjectActionWalk(C4Object *cObj)
bool ObjectActionGetPunched(C4Object *cObj, C4Real xdir, C4Real ydir)
bool ObjectComUnGrab(C4Object *cObj)
bool ObjectActionFlat(C4Object *cObj, int32_t dir)
bool ObjectActionJump(C4Object *cObj, C4Real xdir, C4Real ydir, bool fByCom)
bool ObjectActionDive(C4Object *cObj, C4Real xdir, C4Real ydir)
bool ObjectActionHangle(C4Object *cObj)
bool ObjectActionPush(C4Object *cObj, C4Object *target)
bool ObjectComTake2(C4Object *cObj)
bool ObjectComGrab(C4Object *cObj, C4Object *pTarget)
bool ObjectActionThrow(C4Object *cObj, C4Object *pThing)
bool ObjectComJump(C4Object *cObj)
bool ObjectActionKneel(C4Object *cObj)
bool ObjectActionTumble(C4Object *cObj, int32_t dir, C4Real xdir, C4Real ydir)
bool SimFlightHitsLiquid(C4Real fcx, C4Real fcy, C4Real xdir, C4Real ydir)
bool ComDirLike(int32_t iComDir, int32_t iSample)
bool ObjectComStop(C4Object *cObj)
bool ObjectActionStand(C4Object *cObj)
bool ObjectComPut(C4Object *cObj, C4Object *pTarget, C4Object *pThing)
bool ObjectComDig(C4Object *cObj)
bool ObjectComDrop(C4Object *cObj, C4Object *pThing)
bool ObjectActionDig(C4Object *cObj)
bool ObjectActionCornerScale(C4Object *cObj)
C4Fixed itofix(int32_t x)
int fixtoi(const C4Fixed &x)
StdStrBuf FormatString(const char *szFmt,...)
bool Enter(C4Object *pTarget, bool fCalls=true, bool fCopyMotion=true, bool *pfRejectCollect=nullptr)
void ClearCommand(C4Command *pUntil)
int32_t ContactCheck(int32_t at_x, int32_t at_y, uint32_t *border_hack_contacts=nullptr, bool collide_halfvehic=false)
C4PropList * GetAction() const
bool SetActionByName(C4String *ActName, C4Object *pTarget=nullptr, C4Object *pTarget2=nullptr, int32_t iCalls=SAC_StartCall|SAC_AbortCall, bool fForce=false)
int32_t GetProcedure() const
bool ActivateMenu(int32_t iMenu, int32_t iMenuSelect=0, int32_t iMenuData=0, int32_t iMenuPosition=0, C4Object *pTarget=nullptr)
void SetDir(int32_t tdir)
bool CloseMenu(bool fForce)
C4NotifyingObjectList Contents
bool Exit(int32_t iX=0, int32_t iY=0, int32_t iR=0, C4Real iXDir=Fix0, C4Real iYDir=Fix0, C4Real iRDir=Fix0, bool fCalls=true)
bool SetAction(C4PropList *Act, C4Object *pTarget=nullptr, C4Object *pTarget2=nullptr, int32_t iCalls=SAC_StartCall|SAC_AbortCall, bool fForce=false)
void DoEnergy(int32_t iChange, bool fExact, int32_t iCause, int32_t iCausedByPlr)
C4Object * GetObject(int index=0) const
int32_t GetPropertyInt(C4PropertyName k, int32_t default_val=0) const
virtual const char * GetName() const
C4PropertyName GetPropertyP(C4PropertyName k) const
C4Value Call(C4PropertyName k, C4AulParSet *pPars=nullptr, bool fPassErrors=false)
int32_t GetVertexY(int32_t iVertex)
int32_t GetVertexX(int32_t iVertex)
int32_t GetBottomVertex()
const char * getData() const