mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-06 22:03:05 +02:00
21 lines
307 B
C++
21 lines
307 B
C++
#ifndef ENTITY_CPP
|
|
#define ENTITY_CPP
|
|
|
|
void Entity::SetVelocity(sf::Vector2f velocity)
|
|
{
|
|
mVelocity = velocity;
|
|
}
|
|
|
|
void Entity::setVelocity(float velocityX, float velocityY)
|
|
{
|
|
mVelocity.x = velocityX;
|
|
mVelocity.y = velocityY;
|
|
}
|
|
|
|
sf::Vector2f Entity::getVelocity() const
|
|
{
|
|
return mVelocity;
|
|
}
|
|
|
|
#endif
|