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

Public Member Functions | |
| CPoweredObject (ObjectInterfaceTypes &types) | |
| virtual CObject * | GetPower ()=0 |
| Returns the power cell. More... | |
| virtual void | SetPower (CObject *power)=0 |
| Sets power cell. More... | |
| virtual Math::Vector | GetPowerPosition ()=0 |
| Returns the relative position of power cell. More... | |
| virtual void | SetPowerPosition (const Math::Vector &powerPosition)=0 |
| Sets the relative position of power cell. More... | |
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.
|
pure virtual |
Returns the power cell.
Implemented in COldObject.
|
pure virtual |
Sets power cell.
Implemented in COldObject.
|
pure virtual |
Returns the relative position of power cell.
Implemented in COldObject.
|
pure virtual |
Sets the relative position of power cell.
Implemented in COldObject.
1.8.16