-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_interface.cpp
44 lines (43 loc) · 1.1 KB
/
start_interface.cpp
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
#include<windows.h>
#include"start_interface.h"
#include"boundary.h"
//输出界面
void StartInterface::Print()
{
//移动25次进入屏幕
for(int t = 0; t < 25; ++t)
{
//先移动,再输出,避免覆盖
for(auto& i : start_hyphen)
{
if(i.GetY() > 0) i.BoundaryClear();
i.MoveIn();
if(i.GetY() > 0) i.BoundaryHyphen();
}
for(auto& i : start_vertical)
{
if(i.GetY() > 0) i.BoundaryClear();
i.MoveIn();
if(i.GetY() > 0) i.BoundaryVertical();
}
for(auto& i : start_plus)
{
if(i.GetY() > 0) i.BoundaryClear();
i.MoveIn();
if(i.GetY() > 0) i.BoundaryPlus();
}
for(auto i : start_hyphen)
{
if(i.GetY() > 0) i.BoundaryHyphen();
}
for(auto i : start_vertical)
{
if(i.GetY() > 0) i.BoundaryVertical();
}
for(auto i : start_plus)
{
if(i.GetY() > 0) i.BoundaryPlus();
}
Sleep(interval_);
}
}