Skip to content
Snippets Groups Projects
Commit 6e37900b authored by CHERCHEM Sarah's avatar CHERCHEM Sarah
Browse files

CloudFactory : add the constructor

parent 90b952d8
No related branches found
No related tags found
No related merge requests found
package model; package model;
public class CloudFactory { import util.Position;
import java.util.List;
import java.util.Random;
public class CloudFactory implements ElementFactory<Cloud>, PositionGenerator {
private final Random random;
private final int count;
public CloudFactory(Random random, int count) {
this.random = random;
this.count = count;
}
@Override
public List<Cloud> createElements(int rowCount, int columnCount) {
return List.of();
}
@Override
public int getCount() {
return 0;
}
@Override
public Position generateRandomPosition(int rowCount, int columnCount) {
return null;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment