Hanoi_pan.java~1~
资源名称:汉诺塔图形演示.rar [点击查看]
上传用户:qiye11114
上传日期:2010-01-20
资源大小:126k
文件大小:1k
源码类别:
其他智力游戏
开发平台:
Java
- package hanoi;
- /**
- * <p>Title: Hanoi Pan</p>
- *
- * <p>Description: </p>
- *
- * <p>Copyright: Copyright (c) 2005</p>
- *
- * <p>Company: </p>
- *
- * @author not attributable
- * @version 1.0
- */
- public class Hanoi_pan {
- private int x,y;
- private int width,height;
- public Hanoi_pan(int arg_x,int arg_y,int arg_width,int arg_height) {
- x=arg_x;
- y=arg_y;
- width=arg_width;
- height=arg_height;
- }
- public int getX() {
- return x;
- }
- public int getY() {
- return y;
- }
- public int getWidth() {
- return width;
- }
- public int getHeight() {
- return height;
- }
- }