该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
*************************************************/
void HuaMubiao(int x,int y)
{
HuaKong(x,y);
setcolor(CYAN);
setfillstyle(1,YELLOW);
circle(60+18+x*36,80+18+y*36,16);
circle(60+18+x*36,80+18+y*36,10);
floodfill(60+18+x*36,80+3+y*36,CYAN);
m_nLinshiDitu[y][x]=3;
}
/*************************************************
Function: HuaJiuwei
Description: 为屏幕上给定坐标的位置模拟出就位的箱子
Calls: graphics.h相关函数
Called By: YiDong()、DituZairu()
Input: 坐标
Output: 在指定位置显示就位的箱子
Return: NULL
Others: 最后变量记录
*************************************************/
void HuaJiuwei(int x,int y)
{
HuaKong(x,y);
setcolor(YELLOW);
setfillstyle(1,BLUE);
rectangle(60+x*36+1,80+y*36+1,60+x*36+35,80+y*36+35);
floodfill(60+18+x*36,80+18+y*36,YELLOW);
setcolor(CYAN);
setfillstyle(1,RED);
circle(60+18+x*36,80+18+y*36,16);
circle(60+18+x*36,80+18+y*36,10);
floodfill(60+18+x*36,80+3+y*36,CYAN);
m_nLinshiDitu[y][x]=4;
}
/*************************************************
Function: HuaRen
Description: 为屏幕上给定坐标的位置模拟出小人
Calls: graphics.h相关函数
Called By: YiDong()、DituZairu()
Input: 坐标
Output: 在指定位置显示小人
Return: NULL
Others: 最后变量记录
*************************************************/
void HuaRen(int x,int y)
{
HuaKong(x,y);
setcolor(RED);
setfillstyle(1,WHITE);
circle(60+17+x*36,80+17+y*36,16);
floodfill(60+17+x*36,80+17+y*36,RED);
arc(60+18+x*36-6,80+18+y*36-4,20,160,4);
arc(60+18+x*36+6,80+18+y*36-4,20,160,4);
arc(60+18+x*36,80+16+y*36-4,220,320,14);
m_nLinshiDitu[y][x]=5;
}
/*************************************************
Function: Chushihua
Description: 坐标参数初始化
Calls: NULL
Called By: main()
Input: NULL
Output: 格式化的变量
Return: NULL
Others: 将所有坐标清零,防止BUG
*************************************************/
void Chushihua()
{
int i;
REN.x=0;