OpenClonk
C4ObjectCom.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
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  */
17 
18 /* Lots of handler functions for object action */
19 
20 #ifndef INC_C4ObjectCom
21 #define INC_C4ObjectCom
22 
23 bool ComDirLike(int32_t iComDir, int32_t iSample);
24 
25 bool ObjectActionWalk(C4Object *cObj);
26 bool ObjectActionStand(C4Object *cObj);
27 bool ObjectActionJump(C4Object *cObj, C4Real xdir, C4Real ydir, bool fByCom);
28 bool ObjectActionDive(C4Object *cObj, C4Real xdir, C4Real ydir);
29 bool ObjectActionTumble(C4Object *cObj, int32_t dir, C4Real xdir, C4Real ydir);
30 bool ObjectActionGetPunched(C4Object *cObj, C4Real xdir, C4Real ydir);
31 bool ObjectActionKneel(C4Object *cObj);
32 bool ObjectActionFlat(C4Object *cObj, int32_t dir);
33 bool ObjectActionScale(C4Object *cObj, int32_t dir);
34 bool ObjectActionHangle(C4Object *cObj);
35 bool ObjectActionThrow(C4Object *cObj, C4Object *pThing=nullptr);
36 bool ObjectActionDig(C4Object *cObj);
37 bool ObjectActionPush(C4Object *cObj, C4Object *pTarget);
39 
40 bool ObjectComStop(C4Object *cObj);
41 bool ObjectComGrab(C4Object *cObj, C4Object *pTarget);
42 bool ObjectComPut(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr);
43 bool ObjectComThrow(C4Object *cObj, C4Object *pThing=nullptr);
44 bool ObjectComDrop(C4Object *cObj, C4Object *pThing=nullptr);
45 bool ObjectComUnGrab(C4Object *cObj);
46 bool ObjectComJump(C4Object *cObj);
47 bool ObjectComLetGo(C4Object *cObj, int32_t xdirf);
48 bool ObjectComDig(C4Object *cObj);
49 bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr);
50 bool ObjectComTake(C4Object *cObj); // carlo
51 bool ObjectComTake2(C4Object *cObj); // carlo
52 bool ObjectComPunch(C4Object *cObj, C4Object *pTarget, int32_t iPunch=0);
54 void ObjectComStopDig(C4Object *cObj);
55 
56 #endif
void ObjectComStopDig(C4Object *cObj)
bool ObjectComCancelAttach(C4Object *cObj)
bool ObjectComDrop(C4Object *cObj, C4Object *pThing=nullptr)
bool ObjectComLetGo(C4Object *cObj, int32_t xdirf)
bool ObjectActionScale(C4Object *cObj, int32_t dir)
bool ObjectComTake(C4Object *cObj)
bool ObjectActionWalk(C4Object *cObj)
Definition: C4ObjectCom.cpp:39
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)
Definition: C4ObjectCom.cpp:50
bool ObjectComPut(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr)
bool ObjectComPunch(C4Object *cObj, C4Object *pTarget, int32_t iPunch=0)
bool ObjectComThrow(C4Object *cObj, C4Object *pThing=nullptr)
bool ObjectActionDive(C4Object *cObj, C4Real xdir, C4Real ydir)
Definition: C4ObjectCom.cpp:73
bool ObjectActionHangle(C4Object *cObj)
bool ObjectComTake2(C4Object *cObj)
bool ObjectComGrab(C4Object *cObj, C4Object *pTarget)
bool ObjectActionPush(C4Object *cObj, C4Object *pTarget)
bool ObjectActionThrow(C4Object *cObj, C4Object *pThing=nullptr)
bool ObjectComJump(C4Object *cObj)
bool ObjectActionKneel(C4Object *cObj)
bool ObjectActionTumble(C4Object *cObj, int32_t dir, C4Real xdir, C4Real ydir)
Definition: C4ObjectCom.cpp:88
bool ComDirLike(int32_t iComDir, int32_t iSample)
bool ObjectComStop(C4Object *cObj)
bool ObjectActionStand(C4Object *cObj)
Definition: C4ObjectCom.cpp:44
bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing=nullptr)
bool ObjectComDig(C4Object *cObj)
bool ObjectActionDig(C4Object *cObj)
bool ObjectActionCornerScale(C4Object *cObj)
Definition: C4Real.h:59