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

Interface for objects powered using power cells. More...

#include <powered_object.h>

Inheritance diagram for CPoweredObject:
Inheritance graph
[legend]

Public Member Functions

 CPoweredObject (ObjectInterfaceTypes &types)
 
virtual CObjectGetPower ()=0
 Returns the power cell.
 
virtual void SetPower (CObject *power)=0
 Sets power cell.
 
virtual Math::Vector GetPowerPosition ()=0
 Returns the relative position of power cell.
 
virtual void SetPowerPosition (const Math::Vector &powerPosition)=0
 Sets the relative position of power cell.
 

Detailed Description

Interface for objects powered using power cells.

TODO: It currently includes objects that take other objects as input and convert them, for example PowerPlant. We should create a dedicated interface for such uses.


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