Lines Matching refs:currentShip

131             Ship currentShip = getShipForId(deviceId);  in onKeyDown()  local
132 if (currentShip.onKeyDown(keyCode, event)) { in onKeyDown()
145 Ship currentShip = getShipForId(deviceId); in onKeyUp() local
146 if (currentShip.onKeyUp(keyCode, event)) { in onKeyUp()
189 Ship currentShip = mShips.valueAt(i); in onWindowFocusChanged() local
190 if (currentShip != null) { in onWindowFocusChanged()
191 currentShip.setHeading(0, 0); in onWindowFocusChanged()
192 currentShip.setVelocity(0, 0); in onWindowFocusChanged()
193 currentShip.mDPadState = 0; in onWindowFocusChanged()
219 Ship currentShip = mShips.valueAt(i); in onDraw() local
220 if (currentShip != null) { in onDraw()
221 currentShip.draw(canvas); in onDraw()
251 Ship currentShip = mShips.get(shipID); in getShipForId() local
252 if (null == currentShip) { in getShipForId()
282 currentShip = new Ship(shipColor); in getShipForId()
287 currentShip = new Ship(getNextShipColor()); in getShipForId()
289 mShips.append(shipID, currentShip); in getShipForId()
290 currentShip.setInputDevice(dev); in getShipForId()
293 mDescriptorMap.put(deviceString, currentShip.getColor()); in getShipForId()
296 return currentShip; in getShipForId()
328 Ship currentShip = mShips.valueAt(i); in step() local
329 if (currentShip != null) { in step()
330 currentShip.accelerate(tau); in step()
331 if (!currentShip.step(tau)) { in step()
332 currentShip.reincarnate(); in step()
377 Ship currentShip = mShips.valueAt(j); in step() local
378 if (currentShip != null) { in step()
379 if (currentShip.collidesWith(obstacle)) { in step()
380 currentShip.destroy(); in step()
420 Ship currentShip = mShips.valueAt(i); in step() local
421 if (currentShip != null) { in step()
422 if (currentShip.distanceTo(positionX, positionY) < minDistance) { in step()