All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Go to the documentation of this file.
1 /*
2  * OpenClonk,
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH,
6  * Copyright (c) 2009-2016, The OpenClonk Team and contributors
7  *
8  * Distributed under the terms of the ISC license; see accompanying file
9  * "COPYING" for details.
10  *
11  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
12  * See accompanying file "TRADEMARK" for details.
13  *
14  * To redistribute this file separately, substitute the full license texts
15  * for the above references.
16  */
18 /* Lots of handler functions for object action */
20 #ifndef INC_C4ObjectCom
21 #define INC_C4ObjectCom
23 #include "lib/C4Real.h"
25 bool ComDirLike(int32_t iComDir, int32_t iSample);
27 bool ObjectActionWalk(C4Object *cObj);
28 bool ObjectActionStand(C4Object *cObj);
29 bool ObjectActionJump(C4Object *cObj, C4Real xdir, C4Real ydir, bool fByCom);
30 bool ObjectActionDive(C4Object *cObj, C4Real xdir, C4Real ydir);
31 bool ObjectActionTumble(C4Object *cObj, int32_t dir, C4Real xdir, C4Real ydir);
32 bool ObjectActionGetPunched(C4Object *cObj, C4Real xdir, C4Real ydir);
33 bool ObjectActionKneel(C4Object *cObj);
34 bool ObjectActionFlat(C4Object *cObj, int32_t dir);
35 bool ObjectActionScale(C4Object *cObj, int32_t dir);
36 bool ObjectActionHangle(C4Object *cObj);
37 bool ObjectActionThrow(C4Object *cObj, C4Object *pThing=nullptr);
38 bool ObjectActionDig(C4Object *cObj);
39 bool ObjectActionPush(C4Object *cObj, C4Object *pTarget);
42 bool ObjectComStop(C4Object *cObj);
43 bool ObjectComGrab(C4Object *cObj, C4Object *pTarget);
44 bool ObjectComPut(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr);
45 bool ObjectComThrow(C4Object *cObj, C4Object *pThing=nullptr);
46 bool ObjectComDrop(C4Object *cObj, C4Object *pThing=nullptr);
47 bool ObjectComUnGrab(C4Object *cObj);
48 bool ObjectComJump(C4Object *cObj);
49 bool ObjectComLetGo(C4Object *cObj, int32_t xdirf);
50 bool ObjectComDig(C4Object *cObj);
51 bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr);
52 bool ObjectComTake(C4Object *cObj); // carlo
53 bool ObjectComTake2(C4Object *cObj); // carlo
54 bool ObjectComPunch(C4Object *cObj, C4Object *pTarget, int32_t iPunch=0);
56 void ObjectComStopDig(C4Object *cObj);
58 #endif
bool ObjectComDig(C4Object *cObj)
bool ObjectActionDig(C4Object *cObj)
bool ObjectActionWalk(C4Object *cObj)
Definition: C4ObjectCom.cpp:40
bool ObjectActionHangle(C4Object *cObj)
bool ObjectComPut(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr)
bool ObjectActionCornerScale(C4Object *cObj)
bool ComDirLike(int32_t iComDir, int32_t iSample)
bool ObjectActionDive(C4Object *cObj, C4Real xdir, C4Real ydir)
Definition: C4ObjectCom.cpp:69
bool ObjectComTake(C4Object *cObj)
Definition: C4Real.h:58
bool ObjectActionStand(C4Object *cObj)
Definition: C4ObjectCom.cpp:46
bool ObjectComDrop(C4Object *cObj, C4Object *pThing=nullptr)
bool ObjectComJump(C4Object *cObj)
bool ObjectComCancelAttach(C4Object *cObj)
bool ObjectActionGetPunched(C4Object *cObj, C4Real xdir, C4Real ydir)
Definition: C4ObjectCom.cpp:88
bool ObjectActionScale(C4Object *cObj, int32_t dir)
bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr)
bool ObjectComStop(C4Object *cObj)
bool ObjectComTake2(C4Object *cObj)
bool ObjectActionJump(C4Object *cObj, C4Real xdir, C4Real ydir, bool fByCom)
Definition: C4ObjectCom.cpp:53
bool ObjectComGrab(C4Object *cObj, C4Object *pTarget)
bool ObjectComUnGrab(C4Object *cObj)
bool ObjectComLetGo(C4Object *cObj, int32_t xdirf)
bool ObjectActionKneel(C4Object *cObj)
Definition: C4ObjectCom.cpp:95
bool ObjectActionPush(C4Object *cObj, C4Object *pTarget)
bool ObjectActionThrow(C4Object *cObj, C4Object *pThing=nullptr)
void ObjectComStopDig(C4Object *cObj)
bool ObjectActionFlat(C4Object *cObj, int32_t dir)
bool ObjectComThrow(C4Object *cObj, C4Object *pThing=nullptr)
bool ObjectComPunch(C4Object *cObj, C4Object *pTarget, int32_t iPunch=0)
bool ObjectActionTumble(C4Object *cObj, int32_t dir, C4Real xdir, C4Real ydir)
Definition: C4ObjectCom.cpp:80