25 #include "object/interface/power_container_object.h" 58 inline float GetObjectEnergy(
CObject*
object)
74 inline float GetObjectEnergyLevel(
CObject*
object)
90 inline bool ObjectHasPowerCell(
CObject*
object)
virtual void SetPowerPosition(const Math::Vector &powerPosition)=0
Sets the relative position of power cell.
Interface for objects powered using power cells.
Definition: powered_object.h:37
Definition: power_container_object.h:28
virtual void SetPower(CObject *power)=0
Sets power cell.
ObjectInterfaceType enum.
bool Implements(ObjectInterfaceType type) const
Check if object implements the given type of interface.
Definition: object.h:97
CObject - base class for all game objects.
virtual Math::Vector GetPowerPosition()=0
Returns the relative position of power cell.
3D (3x1) vector
Definition: vector.h:53
Base class for all 3D in-game objects.
Definition: object.h:63
virtual CObject * GetPower()=0
Returns the power cell.
object powered with power cell