-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathView.h
51 lines (44 loc) · 953 Bytes
/
View.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef VIEW_H
#define VIEW_H
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <string>
#include <sstream>
class View : public sf::Drawable {
private:
int anim;
int speed;
int pos;
int offset;
int soundNum;
int faceNum1;
int faceNum2;
int faceNum3;
bool done;
std::string incoming;
std::string displayed;
sf::Color fontColor;
sf::IntRect bounds;
sf::RenderTexture display;
sf::Sound sound;
sf::SoundBuffer* soundList;
sf::Texture faceSheet;
sf::Texture fontSheet;
sf::Texture styleSheet;
void typeChar(char);
public:
View();
void finish();
void addString(std::string);
void setSound(int, std::string);
void setSpeed(int);
void setBounds(sf::IntRect);
void setTextTexture(sf::Texture);
void setFaceTexture(sf::Texture);
void setBorderStyle(sf::Texture);
bool isDone();
void update();
void draw(sf::RenderTarget&, sf::RenderStates) const;
};
#endif