Lines Matching refs:parentObject

118     protected void move(float time, float timeDelta, GameObject parentObject) {  in move()  argument
174 float currentSpeed = parentObject.getVelocity().x; in move()
179 parentObject.getVelocity().x = (currentSpeed); in move()
184 if (parentObject.getVelocity().y + impulse.y > MAX_UPWARD_SPEED in move()
187 if (parentObject.getVelocity().y < MAX_UPWARD_SPEED) { in move()
188 parentObject.getVelocity().y = (MAX_UPWARD_SPEED); in move()
202 parentObject.getVelocity().x = (postDragSpeed); in move()
206 parentObject.getImpulse().add(impulse); in move()
216 GameObject parentObject = (GameObject)parent; in update() local
219 mTouchingGround = parentObject.touchingGround(); in update()
224 if (parentObject.getCurrentAction() == ActionType.INVALID) { in update()
225 gotoMove(parentObject); in update()
233 parentObject.life = mDifficultyConstants.getMaxPlayerLife(); in update()
235 mInvincibleSwap.activate(parentObject); in update()
259 mInvincibleSwap.activate(parentObject); in update()
269 if (parentObject.life <= 0) { in update()
271 } else if (parentObject.getPosition().y < -parentObject.height) { in update()
273 parentObject.life = 0; in update()
276 && parentObject.lastReceivedHitType != HitType.INVALID in update()
277 && parentObject.getCurrentAction() == ActionType.HIT_REACT) { in update()
278 gotoHitReact(parentObject, gameTime); in update()
283 if (hotSpot.getHotSpot(parentObject.getCenteredPositionX(), in update()
284parentObject.getPosition().y + 10.0f) == HotSpotSystem.HotSpotType.DIE) { in update()
285 parentObject.life = 0; in update()
294 stateMove(gameTime, timeDelta, parentObject); in update()
297 stateStomp(gameTime, timeDelta, parentObject); in update()
300 stateHitReact(gameTime, timeDelta, parentObject); in update()
303 stateDead(gameTime, timeDelta, parentObject); in update()
306 stateWin(gameTime, timeDelta, parentObject); in update()
309 stateFrozen(gameTime, timeDelta, parentObject); in update()
312 statePostGhostDelay(gameTime, timeDelta, parentObject); in update()
326 protected void gotoMove(GameObject parentObject) { in gotoMove() argument
327 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in gotoMove()
331 protected void stateMove(float time, float timeDelta, GameObject parentObject) { in stateMove() argument
333 move(time, timeDelta, parentObject); in stateMove()
339 gotoStomp(parentObject); in stateMove()
347 final float x = parentObject.getPosition().x; in stateMove()
348 final float y = parentObject.getPosition().y; in stateMove()
358 GameObject ghost = factory.spawnPlayerGhost(x, y, parentObject, ghostTime); in stateMove()
375 protected void gotoStomp(GameObject parentObject) { in gotoStomp() argument
376 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in gotoStomp()
380 parentObject.getImpulse().zero(); in gotoStomp()
381 parentObject.getVelocity().set(0.0f, 0.0f); in gotoStomp()
382 parentObject.positionLocked = true; in gotoStomp()
385 protected void stateStomp(float time, float timeDelta, GameObject parentObject) { in stateStomp() argument
391 parentObject.getVelocity().set(0.0f, STOMP_VELOCITY); in stateStomp()
392 parentObject.positionLocked = false; in stateStomp()
410 final float x = parentObject.getPosition().x; in stateStomp()
411 final float y = parentObject.getPosition().y; in stateStomp()
420 parentObject.positionLocked = false; in stateStomp()
421 gotoMove(parentObject); in stateStomp()
425 protected void gotoHitReact(GameObject parentObject, float time) { in gotoHitReact() argument
426 if (parentObject.lastReceivedHitType == CollisionParameters.HitType.LAUNCH) { in gotoHitReact()
428 gotoFrozen(parentObject); in gotoHitReact()
437 protected void stateHitReact(float time, float timeDelta, GameObject parentObject) { in stateHitReact() argument
440 gotoMove(parentObject); in stateHitReact()
449 protected void stateDead(float time, float timeDelta, GameObject parentObject) { in stateDead() argument
450 if (mTouchingGround && parentObject.getCurrentAction() != ActionType.DEATH) { in stateDead()
451 parentObject.setCurrentAction(ActionType.DEATH); in stateDead()
452 parentObject.getVelocity().zero(); in stateDead()
453 parentObject.getTargetVelocity().zero(); in stateDead()
456 if (parentObject.getPosition().y < -parentObject.height) { in stateDead()
458 parentObject.setCurrentAction(ActionType.DEATH); in stateDead()
459 parentObject.getVelocity().zero(); in stateDead()
460 parentObject.getTargetVelocity().zero(); in stateDead()
463 if (parentObject.getCurrentAction() == ActionType.DEATH && mTimer > 0.0f) { in stateDead()
472 recorder.setLastDeathPosition(parentObject.getPosition()); in stateDead()
487 protected void stateWin(float time, float timeDelta, GameObject parentObject) { in stateWin() argument
503 protected void gotoFrozen(GameObject parentObject) { in gotoFrozen() argument
505 parentObject.setCurrentAction(ActionType.FROZEN); in gotoFrozen()
508 protected void stateFrozen(float time, float timeDelta, GameObject parentObject) { in stateFrozen() argument
509 if (parentObject.getCurrentAction() == ActionType.MOVE) { in stateFrozen()
510 gotoMove(parentObject); in stateFrozen()
518 protected void statePostGhostDelay(float time, float timeDelta, GameObject parentObject) { in statePostGhostDelay() argument
523 camera.setTarget(parentObject); in statePostGhostDelay()
526 gotoMove(parentObject); in statePostGhostDelay()