51 inline bool IsObjectCarryingCargo(
CObject* obj)
object that can carry other objects
Interface for carrier objects.
Definition: carrier_object.h:29
virtual void SetCargo(CObject *cargo)=0
Sets carried object.
ObjectInterfaceType enum.
bool Implements(ObjectInterfaceType type) const
Check if object implements the given type of interface.
Definition: object.h:97
bool IsCarryingCargo()
Checks whether there is any cargo.
Definition: carrier_object.h:45
CObject - base class for all game objects.
virtual CObject * GetCargo()=0
Returns carried object.
Base class for all 3D in-game objects.
Definition: object.h:63