void function ( int arg0 , int arg1 , int arg2 ) { this . direction = arg2 ; growOnNextMove = false ; alive = true ; bodyParts . add ( new SnakePart ( arg0 , arg1 , color ) ) ; createRemainderOfSnake ( arg0 , arg1 , arg2 ) ; }
initiate the details of the snake : - position of the head of the snake - direction for moving of the head concode_field_sep int DOWN concode_elem_sep int LEFT concode_elem_sep boolean alive concode_elem_sep Color color concode_elem_sep int UP concode_elem_sep int adjustmentY concode_elem_sep int RIGHT concode_elem_sep boolean growOnNextMove concode_elem_sep LinkedList<SnakePart> bodyParts concode_elem_sep int adjustmentX concode_elem_sep int direction concode_field_sep void move concode_elem_sep void grow concode_elem_sep int getDirection concode_elem_sep boolean isGrowOnNextMove concode_elem_sep int getSnakeLength concode_elem_sep void setPositionBase concode_elem_sep SnakePart getSnakePart concode_elem_sep Color getColor concode_elem_sep void paint concode_elem_sep void setPosition concode_elem_sep void createRemainderOfSnake concode_elem_sep boolean isAlive concode_elem_sep void renew concode_elem_sep void setDirection concode_elem_sep void addSnakePart concode_elem_sep void setAlive