Home
last modified time | relevance | path

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

/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java161 private int mGoalX; field in LunarView.LunarThread
303 mGoalX = (int) (Math.random() * (mCanvasWidth - mGoalWidth)); in doStart()
304 if (Math.abs(mGoalX - (mX - mLanderWidth / 2)) > mCanvasHeight / 6) in doStart()
344 mGoalX = savedState.getInt(KEY_GOAL_X); in restoreState()
398 map.putInt(KEY_GOAL_X, Integer.valueOf(mGoalX)); in saveState()
657 canvas.drawLine(mGoalX, 1 + mCanvasHeight - TARGET_PAD_HEIGHT, in doDraw()
658 mGoalX + mGoalWidth, 1 + mCanvasHeight - TARGET_PAD_HEIGHT, in doDraw()
760 boolean onGoal = (mGoalX <= mX - mLanderWidth / 2 && mX in updatePhysics()
761 + mLanderWidth / 2 <= mGoalX + mGoalWidth); in updatePhysics()