freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

maze系統(tǒng)項(xiàng)目設(shè)計(jì)方案-文庫吧資料

2025-05-09 03:02本頁面
  

【正文】 return。 } if(10 == mOne){ mOne = 0。 } if(6 == sTwo){ sTwo = 0。//控制時(shí)間的增加及進(jìn)位 if(10 == sOne){ sOne = 0。 (this)。 } Explode e = new Explode(x,y,tc)。 if(() = 0){ (false)。 (() 3)。 () ){ = false。 ().intersects(()) amp。 () != amp。 } Bullet類屬性: 類型名稱說明Private intx,y記錄子彈的坐標(biāo)Private intinitX,initY記錄產(chǎn)生子彈的位置用于控制子彈的有效攻擊距離Private intBlen=300初始化子彈的有效攻擊距離為300Private static intB_W=10子彈寬度Private static intB_H=10子彈高度Private int speedX =25speedy=25初始化子彈橫縱坐標(biāo)方向的速度為25Private booleangood判斷子彈的好壞用于區(qū)分是敵方子彈還是己方子彈Private Directiondir設(shè)置子彈方向PTClienttcPTClient 引用Private static Image[]bulletImage存放子彈各個(gè)方向的圖片方法: 類型名稱說明publicBullet()子彈類的構(gòu)造函數(shù)參數(shù):子彈的橫縱坐標(biāo)x,y,子彈的方向dir子彈的好壞good,以及PTClient引用tcPublic voiddraw(Graphics g)子彈的繪圖函數(shù)繪制子彈各個(gè)方向各個(gè)時(shí)刻的圖像voidmove()控制子彈的八個(gè)方向的移動(dòng)Public Boolean isGood()用于區(qū)分?jǐn)澄易訌椉悍阶訌棽粋悍饺藛TPublic booleanisLive()判斷子彈是否還活著若死亡則清理出屏幕Public voidcollideWall(Wall w)處理子彈撞墻Public voidcollidePolice(Police pp)處理子彈撞擊警察Public voidcollideThief(Robber pt)處理子彈撞擊ThiefPublic intgetSpeedX()getSpeedY()獲得子彈現(xiàn)有的速度Public intsetSpeedX()setSpeedY()重設(shè)子彈的速度Bullet類的核心算法://子彈撞擊Police的處理 public void collidePolice(Police pp) { if( amp。 ptdir = 。 ptdir = 。 ptdir = 。 ptdir = 。amp。amp。 ptdir = 。 ptdir = 。 ptdir = 。 ptdir = 。amp。amp。 ptdir = 。 ptdir = 。 ptdir = 。 ptdir = 。 ptdir = 。amp。 ptdir = 。amp。 ptdir = 。 ptdir = 。 dir = 。 dir = 。 ptdir = 。amp。 ptdir = 。amp。 if(t2 0) t2 = t2。 int t2 = y y1。 int rLife = ()。 y1 = y2。 y2 = ()。 if(().intersects(r)){//看敵人是否在攻擊區(qū)域內(nèi) isRand = false。i()。 Rectangle r = new Rectangle(x200,y200,400,400)。 int x2,y2。 search()。 } fireNum 。 } if(!isRand){//控制開火 if(fireNum == 0) { fire()。 step = (12) + 3。 if(step == 0){ int rn = ()。 if(y + ) y = 。 if(y 60) y = 60。 } if(true == isMe){ if(dir != ){ ptdir = dir。 y += speedY。 break。 y += speedY。 break。 y = speedY。 break。 y = speedY。 break。 = y。 } catch (InterruptedException e) { ()。 try { (100)。 } //繪圖線程 public class PaintThread implements Runnable{ public void run(){ while(tPaint){ if(0 == second % 10)()。 PTClient主文件類屬性:類型名稱說明intF_EIDTH框架高度intF_HEIGHT框架寬度booleantPaint游戲開始控制booleanmousePaint鼠標(biāo)繪圖控制booleanaddp加入Policebooleanaddt加入Thiefbooleanme親自參戰(zhàn)booleanaddMy加入自己booleanisSpuer隱身booleanaddBackMusic1加入背景音樂booleanaddThiefTen加入十個(gè)ThiefbooleanisWall是否畫出墻壁booleanisWin判斷游戲是否結(jié)束booleanstopContinue暫停/繼續(xù)booleanmyPolice繪制我的人物方法:類型方法名作用public static voidmain()主線程控制,建立主線程public voidPa
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1