-
Notifications
You must be signed in to change notification settings - Fork 2
/
BossColliderController.h
56 lines (45 loc) · 1.26 KB
/
BossColliderController.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
//=====================================
//
//ボスコライダーコントローラヘッダ[BossColliderController.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _BOSSCOLLIDERCONTROLLER_H_
#define _BOSSCOLLIDERCONTROLLER_H_
#include "main.h"
#include "TrailCollider.h"
#include "Framework\BaseObserver.h"
#include "Framework\ObserveSubject.h"
#include <list>
#include <vector>
#include <unordered_map>
/**************************************
前方宣言
***************************************/
class BossColliderGuide;
class BossEnemyModel;
/**************************************
マクロ・列挙子定義
***************************************/
/**************************************
クラス定義
***************************************/
class BossColliderController : public BaseObserver
{
public:
BossColliderController(BossEnemyModel& model);
~BossColliderController();
void Update();
void Draw();
void SetCollider(const std::vector<int>& edgeList);
void DeleteAll();
void OnNotified(ObserveSubject* notifier);
private:
std::list<TrailCollider*> colliderList;
std::unordered_map<ObserveSubject*, BossColliderGuide*> guideMap;
std::unordered_map<ObserveSubject*, LineTrailModel> modelMap;
BossEnemyModel& model;
int cntHit;
float posZ;
};
#endif