|
Colobot
|
Interface for objects powered using power cells. More...
#include <powered_object.h>

Public Member Functions | |
| CPoweredObject (ObjectInterfaceTypes &types) | |
| virtual CObject * | GetPower ()=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. | |
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.
1.8.9.1