-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.h
66 lines (53 loc) · 1.48 KB
/
map.h
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
61
62
63
64
65
66
#pragma once
#include <vector>
#include <list>
#include <string>
#include <fstream>
#include <array>
#include "gclass.h"
class MAP_OBJECT;
class COMMON_DATA;
class HIT_OBJECT;
using namespace std;
//---------------------------------------------------------------------------
//弾オブジェクト:弾のマネージャークラス
//---------------------------------------------------------------------------
class MAP_OBJMGR : public BASE_OBJMGR {
public:
//■■■メンバ変数■■■
COMMON_DATA * common;
std::list<MAP_OBJECT*> *map;
POINT2D maxmap;
std::list<int> *reset;
int i; //カウンタ変数
std::ifstream stage;
std::string str;
int GrHandle;
int gamestage;
//■■■メンバ関数■■■
void Initialize();
void Finalize();
void Update(); //更新処理
void Draw(); //描画処理
MAP_OBJMGR(COMMON_DATA *common, int stage); //コンストラクタ
void AddWall(WALL_HIT *wall, COMMON_DATA *common);
};
//---------------------------------------------------------------------------
//弾オブジェクト:弾
//---------------------------------------------------------------------------
class MAP_OBJECT : public BASE_OBJECT {
public:
//■■■メンバ変数■■■
WALL_HIT *hit; //衝突判定オブジェクトのデータ
COMMON_DATA *common;
int itr;
MAP_OBJMGR *mgr;
//■■■メンバ関数■■■
void Initialize();
void Finalize();
void Update(); //更新処理
void Draw(); //描画処理
void InputItr(int itrnum);
MAP_OBJECT(WALL_HIT *hitdata, COMMON_DATA *common, int itrnum); //コンストラクタ
~MAP_OBJECT(); //デストラクタ
};