Colobot
|
Interface for objects that can be selected and controlled by the player. More...
#include <controllable_object.h>
Public Member Functions | |
CControllableObject (ObjectInterfaceTypes &types) | |
virtual void | SetTrainer (bool trainer)=0 |
Disables remote control of an object (only programming allowed) | |
virtual bool | GetTrainer ()=0 |
Checks if remote control is disabled. | |
virtual void | SetSelect (bool select, bool bDisplayError=true)=0 |
Selects the object. | |
virtual bool | GetSelect ()=0 |
Checks if the object is selected. | |
virtual bool | GetSelectable ()=0 |
Returns true if the object is selectable. | |
virtual void | SetHighlight (bool highlight)=0 |
Highlights the object on mouse over. | |
virtual void | SetCameraType (Gfx::CameraType type)=0 |
Set camera type for this object. | |
virtual Gfx::CameraType | GetCameraType ()=0 |
Return camera type for this object. | |
virtual void | SetCameraDist (float dist)=0 |
Set camera distance for this object. | |
virtual float | GetCameraDist ()=0 |
Return camera distance for this object. | |
virtual void | SetCameraLock (bool lock)=0 |
Disallow camera changes. | |
virtual bool | GetCameraLock ()=0 |
Check if camera changes are disallowed. | |
virtual void | AdjustCamera (Math::Vector &eye, float &dirH, float &dirV, Math::Vector &lookat, Math::Vector &upVec, Gfx::CameraType type)=0 |
Adjust camera parameters for the given object. More... | |
Interface for objects that can be selected and controlled by the player.
|
pure virtual |
Adjust camera parameters for the given object.
TODO: Seems to be for onboard camera only? Check and rename appropriately
Implemented in COldObject.