This is my GoldWorld's code
private Counter theCounter;
Petani p;
/**
* Constructor for objects of class GoldWorld.
*
*/
public GoldWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(700, 600, 1);
drawMap();
theCounter = new Counter();
addObject(theCounter, 50, 20);
prepare();
if(p == null)
p = new Petani();
addObject(p, 70, 400);
}
public Counter getCounter(){
return theCounter;
}
