mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2025-10-02 06:30:15 +02:00
Merge pull request #27 from superckl/master
Because this project can't die
This commit is contained in:
@@ -30,6 +30,11 @@ public class Potato implements Tuber {
|
|||||||
return true; // obviously, potatos are always delicious
|
return true; // obviously, potatos are always delicious
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Tuber propagate() {
|
||||||
|
return new Potato();
|
||||||
|
}
|
||||||
|
|
||||||
private class Condiment {
|
private class Condiment {
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
@@ -52,4 +57,5 @@ public class Potato implements Tuber {
|
|||||||
return false; // robots are not delicious
|
return false; // robots are not delicious
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -2,4 +2,5 @@ package org.drtshock;
|
|||||||
|
|
||||||
public interface Tuber {
|
public interface Tuber {
|
||||||
public boolean isDelicious();
|
public boolean isDelicious();
|
||||||
|
public Tuber propagate();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user