#BlueJ class context comment0.params= comment0.target=QuantumObject() comment1.params= comment1.target=void\ act() comment1.text=\n\ A\ day\ in\ the\ life\ of\ a\ quantum\ object\:\n\ \ 1.\ Maybe\ commit\ suicide\ (i.\ e.\ destroys\ itself\ when\ destroysOnNextTurn\ is\ true)\n\ \ 2.\ Do\ quantum\ object\ interactions\ with\ intersecting\ objects\n\ \ 3.\ --\ Err...\ are\ you\ missing\ point\ 3?\n comment2.params=someSpeed comment2.target=void\ setSpeed(Vector) comment3.params= comment3.target=Vector\ getSpeed() comment4.params=destroys comment4.target=void\ setDestroysOnNextTurn(boolean) comment5.params= comment5.target=boolean\ getDestroysOnNextTurn() comment6.params= comment6.target=void\ move() comment6.text=\n\ move.\ Cause\ the\ quantum\ object\ to\ move\ around\ based\ on\ its\ speed.\n\ \n\ Fun\ fact\:\ speed\ values\ can\ also\ be\ non-integer.\ Because\ Greenfoot\ only\ allows\ for\ pixel-based\ movement,\ the\ mantissa\ of\n\ the\ speed\ vector\ is\ kept\ seperately\ and\ summed\ up\ with\ the\ mantissa\ from\ the\ previous\ turn.\ That\ way,\ e.\ g.\ a\ vertical\ speed\ of\n\ 2.2\ causes\ the\ quantum\ object\ to\ move\ 2\ pixels\ every\ game\ turn,\ and\ 3\ pixels\ every\ 5th\ turn,\ because\ after\ each\ 5\ turns\ the\ .2\n\ mantissae\ have\ added\ up\ to\ 1.\n\ \n\ @see\ \#mantissa\n comment7.params=actor comment7.target=boolean\ hit(greenfoot.Actor) comment7.text=\n\ hit.\ Base\ method\ hit(Actor).\ Uses\ java.lang.reflect\ to\ dynamically\ find\ out\ which\ hit()\ method\ of\ the\ quantum\ object\n\ \ \ \ \ \ to\ invoke\ based\ on\ which\ actual\ class\ "actor"\ has.\ Dynamic\ dispatch\ comes\ true\!\n\ \ \ \ \ \ \n\ @param\ actor\ The\ object\ we\ are\ interacting\ with\n\ \n\ @return\ \ \ \ \ \ boolean.\ True\ if\ this\ quantum\ object\ should\ survive,\ false\ otherwise.\n comment8.params=q comment8.target=boolean\ hit(QuantumObject) comment8.text=\n\ strange\ quantum\ interaction\ effects\ occur...\ not.\ This\ method\ actually\ is\ redundant,\ but\ still\ left\ in\ place\ as\ an\ example\ for\n\ how\ to\ write\ hit()\ methods.\n\ \n\ @param\ q\ \ \ \ \ quantum\ object\ that\ we\ hit.\n numComments=9