who knows
This commit is contained in:
parent
60d408a37c
commit
f43544d15d
19 changed files with 2379 additions and 2063 deletions
50
Rider.h
50
Rider.h
|
|
@ -1,25 +1,25 @@
|
|||
//
|
||||
// Created by benmo on 10/13/2020.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_RIDER_H
|
||||
#define SFML_TEMPLATE_RIDER_H
|
||||
|
||||
|
||||
class Rider : public MySprite {
|
||||
protected:
|
||||
bool followsDirection = false, followsPosition = true;
|
||||
public:
|
||||
Rider(const sf::Texture &texture, float scale) : MySprite(texture, scale) {}
|
||||
|
||||
bool doesFollowDirection() const {
|
||||
return followsDirection;
|
||||
}
|
||||
|
||||
bool doesFollowPosition() const {
|
||||
return followsPosition;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif //SFML_TEMPLATE_RIDER_H
|
||||
//
|
||||
// Created by benmo on 10/13/2020.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_RIDER_H
|
||||
#define SFML_TEMPLATE_RIDER_H
|
||||
|
||||
|
||||
class Rider : public MySprite {
|
||||
protected:
|
||||
bool followsDirection = false, followsPosition = true;
|
||||
public:
|
||||
Rider(const sf::Texture &texture, float scale) : MySprite(texture, scale) {}
|
||||
|
||||
bool doesFollowDirection() const {
|
||||
return followsDirection;
|
||||
}
|
||||
|
||||
bool doesFollowPosition() const {
|
||||
return followsPosition;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif //SFML_TEMPLATE_RIDER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue