-
Notifications
You must be signed in to change notification settings - Fork 0
/
Message.h
50 lines (36 loc) · 1021 Bytes
/
Message.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
/**
* @author Noah Lindsey
* @date September 2019
*/
#ifndef MESSAGE_H
#define MESSAGE_H
#include <string>
#include "defines.h"
using namespace std;
class Message {
public:
Message(char messageType);
Message(char messageType, int row, int col, string str);
Message(char messageType, int row, int col, string str, Direction direction, int length);
void setMessage(char messageType, int row, int col, string str, Direction dir, int length);
void setMessageType(char messageType);
char getMessageType();
void setRow(int row);
int getRow();
void setCol(int col);
int getCol();
void setString(string str);
string getString();
void setDirection(Direction dir);
Direction getDirection();
void setLength(int length);
int getLength();
private:
char messageType;
int row;
int col;
int length;
string str;
Direction dir;
};
#endif