Initialized sheep array in DiscoParty

This commit is contained in:
Georgiy 2013-06-30 20:15:11 -04:00
parent b185f7d02a
commit 8863b401c9

View File

@ -18,7 +18,7 @@ public class DiscoParty {
private DiscoSheep ds; private DiscoSheep ds;
private Player player; private Player player;
private ArrayList<Sheep> sheepList; private ArrayList<Sheep> sheepList= new ArrayList<Sheep>();
private int duration, frequency = 20, numSheep = 5; private int duration, frequency = 20, numSheep = 5;
private final int defaultDuration = 300; // ticks for entire party private final int defaultDuration = 300; // ticks for entire party
private final int defaultFrequency = 10; // ticks per state change private final int defaultFrequency = 10; // ticks per state change