calculates - but does not set - g costs . it will assume basicmovementcost as the cost from previousabstractnode to itself if the movement is not diagonally , otherwise it will assume diagonalmovementcost . weather or not it is diagonally is set in the map class method which finds the adjacent abstractnodes . concode_field_sep int xPosition concode_elem_sep int DIAGONALMOVEMENTCOST concode_elem_sep int hCosts concode_elem_sep int BASICMOVEMENTCOST concode_elem_sep AbstractNode previous concode_elem_sep boolean walkable concode_elem_sep int yPosition concode_elem_sep int gCosts concode_elem_sep boolean diagonally concode_elem_sep int movementPanelty concode_field_sep AbstractNode getPrevious concode_elem_sep void sethCosts concode_elem_sep void sethCosts concode_elem_sep void setIsDiagonaly concode_elem_sep int getyPosition concode_elem_sep int getgCosts concode_elem_sep void setgCosts concode_elem_sep void setgCosts concode_elem_sep void setgCosts concode_elem_sep boolean isWalkable concode_elem_sep void setWalkable concode_elem_sep void setMovementPanelty concode_elem_sep int getfCosts concode_elem_sep int hashCode concode_elem_sep void setCoordinates concode_elem_sep int getxPosition concode_elem_sep int getMovementPanelty concode_elem_sep boolean equals concode_elem_sep boolean isDiagonaly concode_elem_sep int gethCosts concode_elem_sep String toString concode_elem_sep void setPrevious
int function ( AbstractNode arg0 ) { if ( diagonally ) { return ( arg0 . getgCosts ( ) + DIAGONALMOVEMENTCOST + movementPanelty ) ; } else { return ( arg0 . getgCosts ( ) + BASICMOVEMENTCOST + movementPanelty ) ; } }