sdlpp_renderobject: getMovement is const

This commit is contained in:
zvon 2021-08-04 23:29:18 +02:00
parent e67cf508a2
commit 37f7bab63e
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ void RenderObject::addMovement( double x, double y ) {
void RenderObject::setMovement( double x, double y ) { void RenderObject::setMovement( double x, double y ) {
movementDirection = { x, y }; movementDirection = { x, y };
} }
Vec2D< double > RenderObject::getMovement() { Vec2D< double > RenderObject::getMovement() const {
return movementDirection; return movementDirection;
} }
void RenderObject::resetMovementX() { void RenderObject::resetMovementX() {

View File

@ -86,7 +86,7 @@ public:
void setMovementSpeed( double speed ); void setMovementSpeed( double speed );
void addMovement( double x, double y ); void addMovement( double x, double y );
void setMovement( double x, double y ); void setMovement( double x, double y );
Vec2D< double > getMovement(); Vec2D< double > getMovement() const;
void resetMovementX(); void resetMovementX();
void resetMovementY(); void resetMovementY();
void clearColided(); void clearColided();