-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueue.hpp
More file actions
51 lines (41 loc) · 1.09 KB
/
Copy pathQueue.hpp
File metadata and controls
51 lines (41 loc) · 1.09 KB
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
/*********************************************************************
** Program name: Project4
** Author: James Scanlon
** Date: March 3, 2019
** Description: Interface of the Queue Class.
********************************************************************/
#ifndef Queue_hpp
#define Queue_hpp
#include <stdio.h>
#include "Character.hpp"
class Queue{
private:
protected:
struct characterNode
{
friend class Queue;
Character *character;
characterNode* next;
characterNode* prev;
characterNode(Character* characterInput, characterNode* prevInput = NULL, characterNode* nextInput = NULL){
character = characterInput;
next = nextInput;
prev = prevInput;
}
};
characterNode* head;
characterNode* tail;
public:
// constructor
Queue();
// functions
bool isEmpty();
void addBack(Character* characterInput);
Character* getFront();
void FighterToBack();
void removeFront();
void reversePrint();
// destructer
~Queue();
};
#endif /* Queue_hpp */