sdlpp_renderobject: getMovement is const
This commit is contained in:
parent
e67cf508a2
commit
37f7bab63e
@ -120,7 +120,7 @@ void RenderObject::addMovement( double x, double y ) {
|
||||
void RenderObject::setMovement( double x, double y ) {
|
||||
movementDirection = { x, y };
|
||||
}
|
||||
Vec2D< double > RenderObject::getMovement() {
|
||||
Vec2D< double > RenderObject::getMovement() const {
|
||||
return movementDirection;
|
||||
}
|
||||
void RenderObject::resetMovementX() {
|
||||
|
@ -86,7 +86,7 @@ public:
|
||||
void setMovementSpeed( double speed );
|
||||
void addMovement( double x, double y );
|
||||
void setMovement( double x, double y );
|
||||
Vec2D< double > getMovement();
|
||||
Vec2D< double > getMovement() const;
|
||||
void resetMovementX();
|
||||
void resetMovementY();
|
||||
void clearColided();
|
||||
|
Loading…
Reference in New Issue
Block a user