changed color of sheep
This commit is contained in:
parent
24bd3ab6a5
commit
53dd740c03
|
|
@ -17,7 +17,7 @@ public class Sheep extends Agent {
|
||||||
//first we call the constructor of the superClass(Animal)
|
//first we call the constructor of the superClass(Animal)
|
||||||
//with the values we want.
|
//with the values we want.
|
||||||
// here we decide that a Sheep is initially white using this constructor
|
// here we decide that a Sheep is initially white using this constructor
|
||||||
super(x,y,Color.white);
|
super(x,y,Color.pink);
|
||||||
// we give our sheep a hunger value of zero at birth
|
// we give our sheep a hunger value of zero at birth
|
||||||
hunger = 0;
|
hunger = 0;
|
||||||
//we initialize the random number generator we will use to move randomly
|
//we initialize the random number generator we will use to move randomly
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue