#BlueJ class context comment0.params=randomAge\ field\ location comment0.target=Fox(boolean,\ Field,\ Location) comment0.text=\n\ Create\ a\ fox.\ A\ fox\ can\ be\ created\ as\ a\ new\ born\ (age\ zero\n\ and\ not\ hungry)\ or\ with\ a\ random\ age\ and\ food\ level.\n\ \n\ @param\ randomAge\ If\ true,\ the\ fox\ will\ have\ random\ age\ and\ hunger\ level.\n\ @param\ field\ The\ field\ currently\ occupied.\n\ @param\ location\ The\ location\ within\ the\ field.\n comment1.params=newFoxes comment1.target=void\ hunt(java.util.List) comment1.text=\n\ This\ is\ what\ the\ fox\ does\ most\ of\ the\ time\:\ it\ hunts\ for\n\ rabbits.\ In\ the\ process,\ it\ might\ breed,\ die\ of\ hunger,\n\ or\ die\ of\ old\ age.\n\ @param\ field\ The\ field\ currently\ occupied.\n\ @param\ newFoxes\ A\ list\ to\ return\ newly\ born\ foxes.\n comment10.params= comment10.target=boolean\ canBreed() comment10.text=\n\ A\ fox\ can\ breed\ if\ it\ has\ reached\ the\ breeding\ age.\n comment11.params= comment11.target=void\ setDead() comment11.text=\n\ Indicate\ that\ the\ fox\ is\ no\ longer\ alive.\n\ It\ is\ removed\ from\ the\ field.\n comment2.params= comment2.target=boolean\ isAlive() comment2.text=\n\ Check\ whether\ the\ fox\ is\ alive\ or\ not.\n\ @return\ True\ if\ the\ fox\ is\ still\ alive.\n comment3.params= comment3.target=Location\ getLocation() comment3.text=\n\ Return\ the\ fox's\ location.\n\ @return\ The\ fox's\ location.\n comment4.params=newLocation comment4.target=void\ setLocation(Location) comment4.text=\n\ Place\ the\ fox\ at\ the\ new\ location\ in\ the\ given\ field.\n\ @param\ newLocation\ The\ fox's\ new\ location.\n comment5.params= comment5.target=void\ incrementAge() comment5.text=\n\ Increase\ the\ age.\ This\ could\ result\ in\ the\ fox's\ death.\n comment6.params= comment6.target=void\ incrementHunger() comment6.text=\n\ Make\ this\ fox\ more\ hungry.\ This\ could\ result\ in\ the\ fox's\ death.\n comment7.params= comment7.target=Location\ findFood() comment7.text=\n\ Look\ for\ rabbits\ adjacent\ to\ the\ current\ location.\n\ Only\ the\ first\ live\ rabbit\ is\ eaten.\n\ @return\ Where\ food\ was\ found,\ or\ null\ if\ it\ wasn't.\n comment8.params=newFoxes comment8.target=void\ giveBirth(java.util.List) comment8.text=\n\ Check\ whether\ or\ not\ this\ fox\ is\ to\ give\ birth\ at\ this\ step.\n\ New\ births\ will\ be\ made\ into\ free\ adjacent\ locations.\n\ @param\ newFoxes\ A\ list\ to\ return\ newly\ born\ foxes.\n comment9.params= comment9.target=int\ breed() comment9.text=\n\ Generate\ a\ number\ representing\ the\ number\ of\ births,\n\ if\ it\ can\ breed.\n\ @return\ The\ number\ of\ births\ (may\ be\ zero).\n numComments=12