public void act() { if (isPregnant()){ gestationPeriod(); } moveAround(); eating(); matingProcess(); becomingHungry(); growOlder(); } private void becomingHungry() { hungercycle++; if(hungercycle == MONTH){ hungercycle = 0; hungerpoint--; if(hungerpoint == FULLNESS){ stomach=false; // change variable to something that makes more sense }else{ stomach=true; } if(hungerpoint == EMPTINESS){ getWorld().removeObject(this); } } } private void growOlder() { cycles++; if( cycles == MONTH ) { cycles = 0; age++; if( age == LIFE_SPAN ) { getWorld().removeObject(this); } } }