-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrame.cpp
More file actions
46 lines (38 loc) · 903 Bytes
/
Frame.cpp
File metadata and controls
46 lines (38 loc) · 903 Bytes
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
// game engine includes
#include "Frame.h"
// Create empty frame.
df::Frame::Frame(){
frame_str = "";
width = 0;
height = 0;
}
// Create frame of indicated width and height with string.
df::Frame::Frame(int new_width, int new_height, std::string frame_str){
width = new_width;
height = new_height;
this->frame_str = frame_str;
}
// Set width of frame.
void df::Frame::setWidth(int new_width){
width = new_width;
}
// Get width of frame.
int df::Frame::getWidth() const{
return width;
}
// Set height of frame.
void df::Frame::setHeight(int new_height){
height = new_height;
}
// Get height of frame.
int df::Frame::getHeight() const{
return height;
}
// Set frame characters (stored as string).
void df::Frame::setString(std::string new_frame_str){
frame_str = new_frame_str;
}
// Get frame characters (stored as string).
std::string df::Frame::getString() const{
return frame_str;
}