Colobot
Public Member Functions | List of all members
CCarrierObject Class Referenceabstract

Interface for carrier objects. More...

#include <carrier_object.h>

Inheritance diagram for CCarrierObject:
Inheritance graph
[legend]

Public Member Functions

 CCarrierObject (ObjectInterfaceTypes &types)
 
virtual CObjectGetCargo ()=0
 Returns carried object. More...
 
virtual void SetCargo (CObject *cargo)=0
 Sets carried object. More...
 
bool IsCarryingCargo ()
 Checks whether there is any cargo. More...
 

Detailed Description

Interface for carrier objects.

Member Function Documentation

virtual CObject* CCarrierObject::GetCargo ( )
pure virtual

Returns carried object.

Implemented in COldObject.

virtual void CCarrierObject::SetCargo ( CObject cargo)
pure virtual

Sets carried object.

Implemented in COldObject.

bool CCarrierObject::IsCarryingCargo ( )
inline

Checks whether there is any cargo.


The documentation for this class was generated from the following file: