-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shower.h
32 lines (30 loc) · 955 Bytes
/
Shower.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SHOWER_H
#define SHOWER_H
#include <SFML/Graphics.hpp>
#include <iostream>
#include <string>
class Shower {
public:
// showering implimentation:
Shower(const std::string& spriteSheetPath, float frameDuration,
float scaleX = 1.0f, float scaleY = 1.0f)
: frameDuration_shower(frameDuration),
elapsedTime_shower(0.0f),
currentFrame_shower(0),
isAnimating_shower(false) {}
Shower(){}
virtual void startAnimation_shower() = 0;
virtual void update_shower(float deltaTime) = 0;
virtual void draw_shower(sf::RenderWindow& window) = 0;
sf::Sprite sprite_shower;
sf::Texture texture_shower;
float frameDuration_shower;
int currentFrame_shower;
float elapsedTime_shower;
bool isAnimating_shower;
sf::Vector2f position_shower;
sf::Vector2f originalPosition_shower;
virtual void updateSpriteRect_shower() = 0;
virtual ~Shower() {}
};
#endif // SHOWER_H