-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
40 lines (38 loc) · 767 Bytes
/
Player.h
File metadata and controls
40 lines (38 loc) · 767 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
#pragma once
#include"Bag.h"
#include"Manager.h"
//#include <vector>
typedef struct pos {
int x;
int y;
} POS, *PPOS;
class Map;
class Pokemon;
class Player {
public:
POS pos;
bool isBattle;
bool isGiratina; // 기라티나 배틀인지 아닌지
Pokemon* pokemonList[6];
Bag* bag;
private:
int walkCnt;
private:
void MoveUp(char map[MAX_X][MAX_Y]);
void MoveDown(char map[MAX_X][MAX_Y]);
void MoveLeft(char map[MAX_X][MAX_Y]);
void MoveRight(char map[MAX_X][MAX_Y]);
public:
Player();
~Player();
Pokemon* FirstPokemon();
void MovePlayer(Map mapClass);
void SetPlayerPos();
void SetFirstPokemon();
void SwapPokemon(int fIdx, int sIdx);
void AllPokemonHeal();
bool IsPokemonEmpty();
bool IsPokemonFull();
int EmptyPokemonIndex();
void PrintPokemon();
};