浏览代码

Added constructors to Goldfish and Render

They really don't do anything yet.
master
Josh Hofing 12 年前
父节点
当前提交
08d9774c50
共有 2 个文件被更改,包括 19 次插入0 次删除
  1. +12
    -0
      src/Goldfish.java
  2. +7
    -0
      src/Render.java

+ 12
- 0
src/Goldfish.java 查看文件

@@ -1,2 +1,14 @@
public class Goldfish {

private Grid _grid;
private Render _render;

public Goldfish () {
_render = new Render(640, 480);
_grid = new Grid(640, 480);
}

public static void main (String[] args) {
Goldfish g = new Goldfish();
}
}

+ 7
- 0
src/Render.java 查看文件

@@ -1,2 +1,9 @@
public class Render {
public Render (int width, int height) {
}

public Render () {
this(100,100);
}

}

正在加载...
取消
保存