Colobot
|
Interface for objects that can move (have an engine) More...
#include <movable_object.h>
Public Member Functions | |
CMovableObject (ObjectInterfaceTypes &types) | |
virtual CPhysics * | GetPhysics ()=0 |
Returns CPhysics instance associated with this object. If the object implements Movable interface, and type != OBJECT_TOTO, this can be assumed to be != nullptr. More... | |
virtual CMotion * | GetMotion ()=0 |
Returns CMotion instance associated with this object. If the object implements Movable interface, this can be assumed to be != nullptr. More... | |
Interface for objects that can move (have an engine)
TODO: Currently, it just returns pointers to CPhysics and CMotion. These classes should be probably merged with CObject, and maybe even split into some more interfaces.
|
pure virtual |
Returns CPhysics instance associated with this object. If the object implements Movable interface, and type != OBJECT_TOTO, this can be assumed to be != nullptr.
Implemented in COldObject.
|
pure virtual |
Returns CMotion instance associated with this object. If the object implements Movable interface, this can be assumed to be != nullptr.
Implemented in COldObject.