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

正文內(nèi)容

坦克大戰(zhàn)大報告(編輯修改稿)

2024-10-25 07:57 本頁面
 

【文章內(nèi)容簡介】 kMap tm。Random r=new Random()。int randomCount = (10)+5。public EnemyTank(){} public EnemyTank(int wx,int wy,Color c){} @Override public void draw(Graphics g){} public void move(){if(randomCount==0){} randomCount。if((40)36){ } if(direction==){ImageIcon icon=new ImageIcon(“”)。Image enemytankImage=()。y=yspeed。if(y=800WIDTH)x=800WIDTH。}else if(direction==){ ImageIcon icon=new ImageIcon(“”)。Image enemytankImage=()。y+=yspeed。if(y=600HEIGHT)y=600HEIGHT。}else if(direction==){ ImageIcon icon=new ImageIcon(“”)。}}} Image enemytankImage=()。x=xspeed。if(xShell(+WIDTH/2,+HEIGHT/2,tm,} public Rectangle getRec(){ } return new Rectangle(,)。,false))。Blood類:public class Blood {public final int WIDTH=30,HEIGHT=30。public intx=newRandom().nextInt(770),y=new Random().nextInt(570)。TankMap tm。{} public boolean bloodb(Tank t){if(amp。amp。().intersects(())){if(()} else { (“blood up”)。(100)。(“恭喜你,補(bǔ)血啦啦啦!”)。(()+40)。(this)。ImageIcon icon=new ImageIcon(“”)。Image tankImage=()。(tankImage,x,y,null)。public void draw(Graphics g)}}} } (this)。return false。public Rectangle getRec(){ } return new Rectangle(,)。Shell類:public class Shell {public final int WIDTH=5,HEIGHT=5,xspeed=8,yspeed=8。public int x,y。Direction dir = 。public boolean islive=true。TankMap tm=null。Color color=。boolean isgood=true。boolean isLive=true。//構(gòu)造方法public Shell(){} public Shell(int xd,int yd,Direction d,TankMap t){} public Shell(int xd,int yd,Direction d,TankMap t,Color c,boolean g){} public void draw(Graphics g){if(islive){Color c = ()。(color)。(x,y,WIDTH,HEIGHT)。(c)。move(dir)。x=xd。y=yd。dir=d。tm=t。color=c。isgood=g。x=xd。y=yd。dir=d。tm=t。}else{} } (this)。public void move(Direction d){} public Rectangle getRec(){ } public boolean hitTank(Tank t){ if(amp。amp。amp。amp。().intersects(())){/return new Rectangle(,)。if(d==){} y=yspeed。if(y=800)islive=false。}else if(d==){ y+=yspeed。if(y=600)islive=false。}else if(d==){ x=xspeed。if(x(()20)。} public boolean hitTanks(List enemyTanks){} return false。if(()} =false。Explor e=new Explor(x3,y3,)。(e)。return true。(false)。=。(tm, “Game Over!”)。(0)。}} EnemyTank e。for(int i=0。i} return false。e = (i)。if(().intersects(())){} (“hittanks”)。(false)。(e)。=false。Explor ex=new Explor(x3,y3,)。(ex)。return true。過程收獲這已經(jīng)是本學(xué)期第二個小程序了,有了第一份的基礎(chǔ),做第二次的時候明顯熟練的很多,效率比之前也提高了很多,求助老師與同學(xué)也少了許多,基本可以獨自完成坦克大戰(zhàn)這一小游戲可能是收以前學(xué)習(xí)的知識影響吧,在剛剛學(xué)習(xí)的時候總擺脫不了思維定勢的陰影,總是找不到感覺,老師講的都會,可到自己寫的時候卻完全無從下手,“難
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1