• 大小: 6.71M
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-06-24
  • 语言: Java
  • 标签:

资源简介

《疯狂Java讲义》最新版第4版各章课后练习题的源代码答案。

资源截图

代码片段和文件信息

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
 *

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2010-01-17 16:21  project_codes\ball\.classpath

     文件        380  2010-01-17 16:21  project_codes\ball\.project

     文件       1480  2010-01-19 09:32  project_codes\ball\bin\org\crazyit\ball\Ball.class

     文件       1701  2010-01-19 09:32  project_codes\ball\bin\org\crazyit\ball\BallComponent.class

     文件       1027  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\Ballframe$1.class

     文件        810  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\Ballframe$2.class

     文件        756  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\Ballframe$BallPanel.class

     文件       2578  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\Ballframe.class

     文件        668  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\BallGame.class

     文件       6703  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\BallService.class

     文件       1437  2010-01-19 09:33  project_codes\ball\bin\org\crazyit\ball\Brick.class

     文件        884  2010-01-19 09:34  project_codes\ball\bin\org\crazyit\ball\LongMagic.class

     文件        481  2010-01-19 09:34  project_codes\ball\bin\org\crazyit\ball\Magic.class

     文件        900  2010-01-19 09:34  project_codes\ball\bin\org\crazyit\ball\ShortMagic.class

     文件        905  2010-01-19 09:34  project_codes\ball\bin\org\crazyit\ball\Stick.class

     文件       1023  2010-01-17 16:29  project_codes\ball\img\ball.gif

     文件      18918  2010-01-17 16:29  project_codes\ball\img\ball.jpg

     文件       1702  2010-01-17 16:29  project_codes\ball\img\brick.gif

     文件        211  2010-01-17 16:29  project_codes\ball\img\long.gif

     文件       1152  2010-01-17 16:29  project_codes\ball\img\over.gif

     文件        211  2010-01-17 16:29  project_codes\ball\img\short.gif

     文件      18526  2010-01-17 16:29  project_codes\ball\img\stick.jpg

    ..A..H.     12288  2010-03-09 23:26  project_codes\ball\img\Thumbs.db

     文件       1154  2010-01-17 16:29  project_codes\ball\img\win.gif

     文件       2314  2010-01-19 09:32  project_codes\ball\src\org\crazyit\ball\Ball.java

     文件       2351  2010-01-19 09:32  project_codes\ball\src\org\crazyit\ball\BallComponent.java

     文件       3071  2010-01-19 09:33  project_codes\ball\src\org\crazyit\ball\Ballframe.java

     文件        698  2010-01-19 09:33  project_codes\ball\src\org\crazyit\ball\BallGame.java

     文件       9465  2010-01-19 09:33  project_codes\ball\src\org\crazyit\ball\BallService.java

     文件       1630  2010-01-19 09:33  project_codes\ball\src\org\crazyit\ball\Brick.java

............此处省略2307个文件信息

评论

共有 条评论