#include "C4Include.h"
#include "object/C4ObjectCom.h"
#include "game/C4Physics.h"
#include "graphics/C4GraphicsResource.h"
#include "gui/C4GameMessage.h"
#include "landscape/C4Material.h"
#include "lib/C4Random.h"
#include "object/C4Command.h"
#include "object/C4Def.h"
#include "object/C4GameObjects.h"
#include "object/C4Object.h"
#include "object/C4ObjectMenu.h"
#include "player/C4Player.h"
#include "player/C4PlayerList.h"
#include "script/C4Effect.h"
Go to the source code of this file.
bool ComDirLike | ( | int32_t | iComDir, |
int32_t | iSample | ||
) |
Definition at line 575 of file C4ObjectCom.cpp.
Referenced by C4Object::ContactAction(), C4Object::NoAttachAction(), and ObjectComDrop().
bool ObjectActionCornerScale | ( | C4Object * | cObj | ) |
Definition at line 210 of file C4ObjectCom.cpp.
Referenced by C4Object::ContactAction(), and C4Object::NoAttachAction().
bool ObjectActionDig | ( | C4Object * | cObj | ) |
Definition at line 175 of file C4ObjectCom.cpp.
References C4Object::Action, C4Action::Data, and C4Object::SetActionByName().
Referenced by ObjectComDig().
Definition at line 73 of file C4ObjectCom.cpp.
References C4Object::Action, CNAT_Bottom, C4Object::Mobile, C4Object::SetActionByName(), C4Action::t_attach, C4Object::xdir, and C4Object::ydir.
Referenced by ObjectComJump().
bool ObjectActionFlat | ( | C4Object * | cObj, |
int32_t | dir | ||
) |
Definition at line 116 of file C4ObjectCom.cpp.
References C4Object::SetActionByName(), and C4Object::SetDir().
Referenced by C4Object::ContactAction().
Definition at line 100 of file C4ObjectCom.cpp.
References C4Object::SetActionByName(), C4Object::xdir, and C4Object::ydir.
Referenced by ObjectComPunch().
bool ObjectActionHangle | ( | C4Object * | cObj | ) |
Definition at line 136 of file C4ObjectCom.cpp.
References C4Object::SetActionByName().
Referenced by C4Object::ContactAction().
Definition at line 50 of file C4ObjectCom.cpp.
References C4Object::Action, C4PropList::Call(), CNAT_Bottom, fixtoi(), C4Object::Mobile, PSF_OnActionJump, C4Object::SetActionByName(), C4Action::t_attach, C4Object::xdir, and C4Object::ydir.
Referenced by C4Object::ContactAction(), C4Object::Fling(), C4Object::NoAttachAction(), ObjectComJump(), and ObjectComLetGo().
bool ObjectActionKneel | ( | C4Object * | cObj | ) |
Definition at line 111 of file C4ObjectCom.cpp.
References C4Object::SetActionByName().
Referenced by C4Object::ContactAction().
Definition at line 185 of file C4ObjectCom.cpp.
References C4Object::SetActionByName().
Referenced by ObjectComGrab().
bool ObjectActionScale | ( | C4Object * | cObj, |
int32_t | dir | ||
) |
Definition at line 126 of file C4ObjectCom.cpp.
References C4Object::SetActionByName(), and C4Object::SetDir().
Referenced by C4Object::ContactAction().
bool ObjectActionStand | ( | C4Object * | cObj | ) |
Definition at line 44 of file C4ObjectCom.cpp.
References C4Object::Action, COMD_Stop, C4Action::ComDir, and ObjectActionWalk().
Referenced by C4Object::ContactAction(), ObjectComStop(), ObjectComStopDig(), and ObjectComUnGrab().
Definition at line 141 of file C4ObjectCom.cpp.
References C4Object::Action, C4REAL100(), C4Object::Contents, C4Action::Dir, DIR_Left, C4Object::Exit(), C4ObjectList::GetObject(), C4PropList::GetPropertyInt(), C4Object::GetX(), C4Object::GetY(), P_ThrowSpeed, Random(), C4Object::SetActionByName(), C4Object::Shape, C4Object::xdir, C4Rect::y, and C4Object::ydir.
Referenced by ObjectComThrow().
Definition at line 88 of file C4ObjectCom.cpp.
References C4Object::SetActionByName(), C4Object::SetDir(), C4Object::xdir, and C4Object::ydir.
Referenced by C4Object::ContactAction(), C4Object::Fling(), and ObjectComPunch().
bool ObjectActionWalk | ( | C4Object * | cObj | ) |
Definition at line 39 of file C4ObjectCom.cpp.
References C4Object::SetActionByName().
Referenced by C4Object::ContactAction(), and ObjectActionStand().
bool ObjectComCancelAttach | ( | C4Object * | cObj | ) |
Definition at line 551 of file C4ObjectCom.cpp.
References DFA_ATTACH, C4Object::GetProcedure(), and C4Object::SetAction().
Referenced by C4Object::Collect(), and C4Command::InitEvaluation().
bool ObjectComDig | ( | C4Object * | cObj | ) |
Definition at line 340 of file C4ObjectCom.cpp.
References FormatString(), GameMsgObjectError(), StdStrBuf::getData(), C4PropList::GetName(), LoadResStr(), and ObjectActionDig().
Referenced by C4Command::Dig().
Definition at line 415 of file C4ObjectCom.cpp.
References C4Object::Action, C4REAL10(), C4REAL100(), COMD_Left, COMD_Right, C4Action::ComDir, ComDirLike(), C4Object::Contents, DFA_HANGLE, DFA_SCALE, DFA_SWIM, C4Object::Exit(), Fix0, C4Object::GetAction(), C4ObjectList::GetObject(), C4PropList::GetPropertyInt(), C4PropList::GetPropertyP(), C4Object::GetX(), C4Object::GetY(), C4Rect::Hgt, ObjectComUnGrab(), P_Procedure, P_ThrowSpeed, C4ScriptGuiWindowPropertyName::right, C4Object::SetOCF(), C4Object::Shape, C4Rect::Wdt, C4Rect::x, C4Object::xdir, and C4Rect::y.
Referenced by C4Command::Drop(), and C4Object::PutAwayUnusedObject().
Definition at line 245 of file C4ObjectCom.cpp.
References C4PropList::Call(), DFA_WALK, C4Object::GetProcedure(), ObjectActionPush(), PSF_Grab, PSF_Grabbed, and C4PropList::Status.
Referenced by C4Command::Grab().
bool ObjectComJump | ( | C4Object * | cObj | ) |
Definition at line 293 of file C4ObjectCom.cpp.
References C4Object::Action, C4M_Liquid, C4REAL100(), COMD_Left, COMD_Right, COMD_UpLeft, COMD_UpRight, C4Action::ComDir, C4Shape::ContactDensity, DFA_WALK, Fix0, C4Object::fix_x, C4Object::fix_y, FullCon, C4Object::GetAction(), C4Shape::GetBottomVertex(), C4Object::GetCon(), C4Object::GetProcedure(), C4PropList::GetPropertyInt(), C4Shape::GetVertexX(), C4Shape::GetVertexY(), itofix(), ObjectActionDive(), ObjectActionJump(), P_JumpSpeed, P_Speed, C4Object::Shape, and SimFlightHitsLiquid().
Referenced by C4Command::Exit(), and C4Command::InitEvaluation().
bool ObjectComLetGo | ( | C4Object * | cObj, |
int32_t | xdirf | ||
) |
Definition at line 334 of file C4ObjectCom.cpp.
References Fix0, itofix(), and ObjectActionJump().
Referenced by C4Command::Dig(), C4Command::Grab(), and C4Command::MoveTo().
Definition at line 507 of file C4ObjectCom.cpp.
References C4Object::Action, C4FxCall_EngGetPunched, C4REAL100(), C4PropList::Call(), COMD_Stop, C4Action::ComDir, C4Object::Controller, C4Action::Dir, DIR_Left, C4Object::DoEnergy(), Fix0, itofix(), ObjectActionGetPunched(), ObjectActionTumble(), PSF_CatchBlow, and PSF_QueryCatchBlow.
Definition at line 350 of file C4ObjectCom.cpp.
References C4D_Grab_Put, C4PropList::Call(), C4Object::Contained, C4Object::Contents, C4Object::Def, C4Object::Enter(), C4ObjectList::GetObject(), C4Def::GrabPutGet, C4Object::OCF, OCF_FullCon, PSF_Collection, and PSF_Put.
Referenced by ObjectComPutTake(), C4Command::Put(), and C4Object::PutAwayUnusedObject().
Definition at line 463 of file C4ObjectCom.cpp.
References C4Object::ActivateMenu(), C4D_Grab_Get, C4MN_Get, C4Object::Contained, C4Object::Contents, C4Object::Def, C4ObjectList::GetObject(), C4Def::GrabPutGet, ObjectComPut(), and ObjectComTake().
Referenced by C4Command::Drop(), and C4Command::Throw().
bool ObjectComStop | ( | C4Object * | cObj | ) |
Definition at line 237 of file C4ObjectCom.cpp.
References ObjectActionStand(), and C4Object::SetActionByName().
Referenced by C4Command::Activate(), C4Command::Dig(), C4Command::Drop(), C4Command::Enter(), C4Command::Get(), C4Command::Grab(), C4Command::MoveTo(), C4Command::PushTo(), C4Command::Put(), StopActionDelayCommand(), C4Command::Throw(), and C4Command::Wait().
void ObjectComStopDig | ( | C4Object * | cObj | ) |
Definition at line 560 of file C4ObjectCom.cpp.
References C4CMD_Dig, C4Object::ClearCommand(), C4Command::Command, C4Object::Command, ObjectActionStand(), C4Object::xdir, and C4Object::ydir.
bool ObjectComTake | ( | C4Object * | cObj | ) |
Definition at line 496 of file C4ObjectCom.cpp.
References C4Object::ActivateMenu(), and C4MN_Activate.
Referenced by ObjectComPutTake(), and C4Command::Take().
bool ObjectComTake2 | ( | C4Object * | cObj | ) |
Definition at line 502 of file C4ObjectCom.cpp.
References C4Object::ActivateMenu(), C4MN_Get, and C4Object::Contained.
Referenced by C4Command::Take2().
Definition at line 393 of file C4ObjectCom.cpp.
References C4Object::Contents, DFA_WALK, C4ObjectList::GetObject(), C4Object::GetProcedure(), and ObjectActionThrow().
Referenced by C4Command::Throw().
bool ObjectComUnGrab | ( | C4Object * | cObj | ) |
Definition at line 267 of file C4ObjectCom.cpp.
References C4Object::Action, C4PropList::Call(), C4Object::CloseMenu(), DFA_PUSH, C4Object::GetProcedure(), ObjectActionStand(), PSF_Grab, PSF_Grabbed, C4PropList::Status, and C4Action::Target.
Referenced by ObjectComDrop(), and C4Command::UnGrab().
Definition at line 874 of file C4Movement.cpp.
References C4M_Liquid, C4M_Vehicle, DensityLiquid(), fixtoi(), GBackDensity(), GBackLiquid(), and SimFlight().
Referenced by ObjectComJump().