-
Notifications
You must be signed in to change notification settings - Fork 0
/
arrow.hpp
51 lines (35 loc) · 960 Bytes
/
arrow.hpp
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
#pragma once
#include "DxLib.h"
#include "ExternalHeaderFiles/json.hpp"
#include "sprite.hpp"
#include "map.hpp"
#include "player.hpp"
#include "monster.hpp"
class map;
class monster;
using json = nlohmann::json;
class arrow {
private:
json Config;
sprite Sprite;
map *Map;
std::vector<monster *> *Monster;
std::vector<bool> BlockCol = {
false, // air
true, // wall
true, // stone
false, // pond
};
int Attack;
int Penetration;
int Bound;
bool Poison;
std::map<std::string, int> Graph;
std::map<std::string, pos> GraphSize;
public:
bool Use;
std::vector<arrow> Update();
void Draw(int Scroll);
arrow();
arrow(pos Pos, double Direction, map *Map, std::vector<monster *> *Monster, int Attack, int Penetration, int Bound, bool Poison, std::map<std::string, int> Graph, json Config);
};