-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBattle.h
More file actions
60 lines (54 loc) · 896 Bytes
/
Battle.h
File metadata and controls
60 lines (54 loc) · 896 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#pragma once
#include"Pokemon.h"
const int HP_BAR = 10;
enum CursorPos
{
ONE = 1,
TWO,
THREE,
FOUR,
FIVE,
SIX
};
enum InputType {
E_Choice = 0,
E_Skill,
E_Item,
E_Pokemon
};
typedef struct Cousorpos {
int pos;
} CORSORPOS;
class Player;
class Map;
class Battle {
private:
CORSORPOS _pos;
int input;
bool isInput;
bool isTurn; // 내턴인지 상대천인지 구별하는 불값 변수, 내턴이면 True
wchar_t monsterballImage[5][11];
public:
Pokemon* wildPokemon;
Player* player;
Map* map;
public:
void Update();
void CreatePokemon();
void PrintBattleStartAnim();
void AllPrint();
void PrintBattleScreen();
void PrintPokemon();
void PrintPokemonHp();
void PrintPokemonName();
void PrintText();
void MoveCursor();
void PrintCursor();
void DeleteCursor();
void SetTurn();
void EnemyAttack();
void Input();
void IgnoreInput();
Battle(Player* player, Map* map);
~Battle();
};