Bladeren bron

run method in RuleSet, fixed javadoc stupid.

master
Josh Hofing 12 jaren geleden
bovenliggende
commit
551d4d0d14
2 gewijzigde bestanden met toevoegingen van 14 en 3 verwijderingen
  1. +3
    -3
      src/Render.java
  2. +11
    -0
      src/rules/RuleSet.java

+ 3
- 3
src/Render.java Bestand weergeven

@@ -19,9 +19,9 @@ public class Render {
* This should draw to a buffer, which should be
* rendered with render()
*
* @arg x The x coordinate
* @arg y The y coordinate
* @arg c The color to draw
* @param x The x coordinate
* @param y The y coordinate
* @param c The color to draw
*/
public void draw (int x, int y, Color c) {



+ 11
- 0
src/rules/RuleSet.java Bestand weergeven

@@ -1,4 +1,15 @@
package edu.stuy.goldfish.rules;

public class RuleSet {

/**
* Run this ruleset on a grid, returning the result.
*
* @param g The grid this is running on
*
* @return
*/
public static Grid run (Grid g) {
return g;
}
}

Laden…
Annuleren
Opslaan