-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuman.h
47 lines (42 loc) · 1.08 KB
/
human.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
/*******************************************************************************
* Name: Samuel Menkus & Alden Faville
* Email: [email protected] & [email protected]
* Function: Serves as a header file for human.cpp
* Input: Varies
* Output: Varies
* Completed: 12-15-2017
* Comments:
******************************************************************************/
#ifndef HUMAN_H
#define HUMAN_H
#include <iostream>
#include <cstdlib>
using namespace std;
class human
{
public:
//constructors/de-constructor
human();
human(const human&);
~human();
//getters/setters
char getType() const;
int getRow() const;
int getCol() const;
bool getMoved() const;
void setType(char);
void setRow(int);
void setCol(int);
void setMoved(bool);
//methods
void print();
int checkMove();
bool equals(human&);
private:
char type;
int row;
int col;
bool moved;
int genMove();
};
#endif