-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParty.hpp
More file actions
46 lines (41 loc) · 1.05 KB
/
Copy pathParty.hpp
File metadata and controls
46 lines (41 loc) · 1.05 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
/*********************************************************************
** Program name: FinalProject
** Author: James Scanlon
** Date: March 19, 2019
** Description: Interface of the Party class.
*********************************************************************/
#ifndef Party_hpp
#define Party_hpp
#include <stdio.h>
#include "Pokemon.hpp"
class Party{
private:
protected:
struct pokemonNode
{
friend class Party;
Pokemon *pokemon;
pokemonNode* next;
pokemonNode* prev;
pokemonNode(Pokemon* pokemonInput, pokemonNode* prevInput = NULL, pokemonNode* nextInput = NULL){
pokemon = pokemonInput;
next = nextInput;
prev = prevInput;
}
};
pokemonNode* head;
pokemonNode* tail;
public:
// constructor
Party();
// functions
bool isEmpty();
void addBack(Pokemon* characterInput);
Pokemon* getFront();
void pokemonToBack();
void removeFront();
void reversePrint();
// destructer
~Party();
};
#endif /* Party_hpp */