-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathflagpole.h
48 lines (45 loc) · 918 Bytes
/
flagpole.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
//终点旗杆和旗帜
#pragma once
#include "collider.h"
class Flagpole : //旗杆
public Collider
{
private:
double sx = 0, sy = 0;
Costume ct;
protected:
bool report_collision(int direction, Collider* target, int target_collider_layer);
public:
Costume getcostume();
std::pair<double, double> getctpos();
bool update();
Flagpole();
};
class Flag : //旗帜
public Collider
{
private:
double sx = 0, sy = 0;
Costume ct;
protected:
bool report_collision(int direction, Collider* target, int target_collider_layer);
public:
Costume getcostume();
std::pair<double, double> getctpos();
bool update();
Flag();
};
class Small_flag : //城堡小旗帜
public Collider
{
private:
double sx = 0, sy = 0;
Costume ct;
protected:
bool report_collision(int direction, Collider* target, int target_collider_layer);
public:
Costume getcostume();
std::pair<double, double> getctpos();
bool update();
Small_flag();
};