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) More... | |
virtual bool | GetTrainer ()=0 |
Checks if remote control is disabled. More... | |
virtual void | SetSelect (bool select, bool bDisplayError=true)=0 |
Selects the object. More... | |
virtual bool | GetSelect ()=0 |
Checks if the object is selected. More... | |
virtual bool | GetSelectable ()=0 |
Returns true if the object is selectable. More... | |
virtual void | SetHighlight (bool highlight)=0 |
Highlights the object on mouse over. More... | |
virtual void | SetCameraType (Gfx::CameraType type)=0 |
Set camera type for this object. More... | |
virtual Gfx::CameraType | GetCameraType ()=0 |
Return camera type for this object. More... | |
virtual void | SetCameraLock (bool lock)=0 |
Disallow camera changes. More... | |
virtual bool | GetCameraLock ()=0 |
Check if camera changes are disallowed. More... | |
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 |
Disables remote control of an object (only programming allowed)
Implemented in COldObject.
|
pure virtual |
Checks if remote control is disabled.
Implemented in COldObject.
|
pure virtual |
Selects the object.
Implemented in COldObject.
|
pure virtual |
Checks if the object is selected.
Implemented in COldObject.
|
pure virtual |
Returns true if the object is selectable.
Implemented in COldObject.
|
pure virtual |
Highlights the object on mouse over.
Implemented in COldObject.
|
pure virtual |
Set camera type for this object.
Implemented in COldObject.
|
pure virtual |
Return camera type for this object.
Implemented in COldObject.
|
pure virtual |
Disallow camera changes.
Implemented in COldObject.
|
pure virtual |
Check if camera changes are disallowed.
Implemented in COldObject.
|
pure virtual |
Adjust camera parameters for the given object.
TODO: Seems to be for onboard camera only? Check and rename appropriately
Implemented in COldObject.