Home
last modified time | relevance | path

Searched refs:newHead (Results 1 – 1 of 1) sorted by relevance

/development/samples/Snake/src/com/example/android/snake/
DSnakeView.java459 Coordinate newHead = new Coordinate(1, 1); in updateSnake() local
465 newHead = new Coordinate(head.x + 1, head.y); in updateSnake()
469 newHead = new Coordinate(head.x - 1, head.y); in updateSnake()
473 newHead = new Coordinate(head.x, head.y - 1); in updateSnake()
477 newHead = new Coordinate(head.x, head.y + 1); in updateSnake()
484 if ((newHead.x < 1) || (newHead.y < 1) || (newHead.x > mXTileCount - 2) in updateSnake()
485 || (newHead.y > mYTileCount - 2)) { in updateSnake()
495 if (c.equals(newHead)) { in updateSnake()
505 if (c.equals(newHead)) { in updateSnake()
517 mSnakeTrail.add(0, newHead); in updateSnake()