Home
last modified time | relevance | path

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

/development/samples/Snake/src/com/example/android/snake/
DSnake.java48 private SnakeView mSnakeView; field in Snake
61 mSnakeView = (SnakeView) findViewById(R.id.snake); in onCreate()
62 mSnakeView.setDependentViews((TextView) findViewById(R.id.text), in onCreate()
67 mSnakeView.setMode(SnakeView.READY); in onCreate()
72 mSnakeView.restoreState(map); in onCreate()
74 mSnakeView.setMode(SnakeView.PAUSE); in onCreate()
77 mSnakeView.setOnTouchListener(new OnTouchListener() { in onCreate()
81 if (mSnakeView.getGameState() == SnakeView.RUNNING) { in onCreate()
92 mSnakeView.moveSnake(direction); in onCreate()
97 mSnakeView.moveSnake(MOVE_UP); in onCreate()
[all …]