91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15.26MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-04
  • 語言: Java
  • 標簽: JavaSE??項目??實戰??

資源簡介

第1章 控制臺五子棋 第2章 仿Windows計算器 第3章 圖片瀏覽器 第4章 桌面彈球 第5章 單機俄羅斯方塊 第6章 仿Windows畫圖 第7章 單機連連看 第8章 簡單Java IDE工具......

資源截圖

代碼片段和文件信息

package?org.crazyit.ball;

import?java.awt.Image;
import?java.io.File;
import?javax.imageio.ImageIO;
import?java.io.IOException;

/**
?*?小球對象
?*?
?*?@author?yangenxiong?yangenxiong2009@gmail.com
?*?@author?Kelvin?Mak?kelvin.mak125@gmail.com
?*?@version??1.0
?*?
網站:?瘋狂Java聯盟
?*?
Copyright?(C)?2009-2010?yangenxiong
?*?
This?program?is?protected?by?copyright?laws.
?*/
public?class?Ball?extends?BallComponent?{
//?定義球的豎向速度
private?int?speedY?=?10;
//?定義彈球的橫向速度
private?int?speedX?=?8;
//?定義是否在運動
private?boolean?started?=?false;
//?定義是否結束運動
private?boolean?stop?=?false;

/**
?*?m?有參數構造器
?*?
?*?@param?panelWidth
?*????????????int?畫板寬度
?*?@param?panelHeight
?*????????????int?畫板高度
?*?@param?offset
?*????????????int?位移
?*?@param?path
?*????????????String?圖片路徑
?*/
public?Ball(int?panelWidth?int?panelHeight?int?offset?String?path)
throws?IOException?{
//?調用父構造器
super(panelWidth?panelHeight?path);
//?設置y坐標
this.setY(panelHeight?-?super.getImage().getHeight(null)?-?offset);
}

/**
?*?設置橫向速度
?*?
?*?@param?speed
?*????????????int?速度
?*?@return?void
?*/
public?void?setSpeedX(int?speed)?{
this.speedX?=?speed;
}

/**
?*?設置豎向速度
?*?
?*?@param?speed
?*????????????int?速度
?*?@return?void
?*/
public?void?setSpeedY(int?speed)?{
this.speedY?=?speed;
}

/**
?*?設置是否在運動
?*?
?*?@param?b
?*????????????boolean
?*?@return?void
?*/
public?void?setStarted(boolean?b)?{
this.started?=?b;
}

/**
?*?設置是否結束運動
?*?
?*?@param?b
?*????????????boolean
?*?@return?void
?*/
public?void?setStop(boolean?b)?{
this.stop?=?b;
}

/**
?*?返回橫向速度
?*?
?*?@return?int?速度
?*/
public?int?getSpeedX()?{
return?this.speedX;
}

/**
?*?返回豎向速度
?*?
?*?@return?int?速度
?*/
public?int?getSpeedY()?{
return?this.speedY;
}

/**
?*?是否在運動
?*?
?*?@return?boolean?是否在運動
?*/
public?boolean?isStarted()?{
return?this.started;
}

/**
?*?是否已經結束運動
?*?
?*?@return?boolean?是否已經結束運動
?*/
public?boolean?isStop()?{
return?this.stop;
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-05?18:35??code\
?????目錄???????????0??2017-08-30?21:22??code\ball\
?????文件?????????232??2010-01-17?17:21??code\ball\.classpath
?????文件?????????380??2010-01-17?17:21??code\ball\.project
?????目錄???????????0??2017-08-30?21:22??code\ball\.settings\
?????文件??????????86??2017-08-30?21:22??code\ball\.settings\org.eclipse.core.resources.prefs
?????目錄???????????0??2017-08-30?14:55??code\ball\bin\
?????目錄???????????0??2017-08-30?14:55??code\ball\bin\org\
?????目錄???????????0??2017-08-30?14:55??code\ball\bin\org\crazyit\
?????目錄???????????0??2017-08-30?14:55??code\ball\bin\org\crazyit\ball\
?????文件????????1480??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\Ball.class
?????文件????????1701??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\BallComponent.class
?????文件????????1027??2017-08-31?16:17??code\ball\bin\org\crazyit\ball\Ballframe$1.class
?????文件?????????810??2017-08-31?16:17??code\ball\bin\org\crazyit\ball\Ballframe$2.class
?????文件?????????820??2017-08-31?16:17??code\ball\bin\org\crazyit\ball\Ballframe$BallPanel.class
?????文件????????2478??2017-08-31?16:17??code\ball\bin\org\crazyit\ball\Ballframe.class
?????文件?????????668??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\BallGame.class
?????文件????????6454??2017-08-31?15:57??code\ball\bin\org\crazyit\ball\BallService.class
?????文件????????1391??2017-08-31?10:22??code\ball\bin\org\crazyit\ball\Brick.class
?????文件?????????884??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\LongMagic.class
?????文件?????????481??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\Magic.class
?????文件?????????900??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\ShortMagic.class
?????文件?????????905??2017-08-30?21:22??code\ball\bin\org\crazyit\ball\Stick.class
?????目錄???????????0??2017-07-05?18:35??code\ball\img\
?????文件????????1023??2010-01-17?17:29??code\ball\img\ball.gif
?????文件???????18918??2010-01-17?17:29??code\ball\img\ball.jpg
?????文件????????1702??2010-01-17?17:29??code\ball\img\brick.gif
?????文件?????????211??2010-01-17?17:29??code\ball\img\long.gif
?????文件????????1152??2010-01-17?17:29??code\ball\img\over.gif
?????文件?????????211??2010-01-17?17:29??code\ball\img\short.gif
?????文件???????18526??2010-01-17?17:29??code\ball\img\stick.jpg
............此處省略2300個文件信息

評論

共有 條評論