/external/replicaisland/src/com/replica/replicaisland/ |
NPCAnimationComponent.java | 69 GameObject parentObject = (GameObject)parent; 74 idle(parentObject); 77 walk(parentObject); 80 runStart(parentObject); 83 run(parentObject); 86 shoot(parentObject); 89 jumpStart(parentObject); 92 jumpAir(parentObject); 95 takeHit(parentObject); 98 surprised(parentObject); [all...] |
PatrolComponent.java | 70 GameObject parentObject = (GameObject) parent; 72 if (parentObject.getCurrentAction() == ActionType.INVALID 73 || parentObject.getCurrentAction() == ActionType.HIT_REACT) { 74 parentObject.setCurrentAction(GameObject.ActionType.MOVE); 77 if ((mFlying || parentObject.touchingGround()) && parentObject.life > 0) { 85 updateAttack(player, parentObject); 89 if (parentObject.getCurrentAction() == GameObject.ActionType.MOVE 95 hotSpot = hotSpotSystem.getHotSpot(parentObject.getCenteredPositionX(), 96 parentObject.getPosition().y + 10.0f) [all...] |
NPCComponent.java | 114 GameObject parentObject = (GameObject)parent; 118 parentObject.getCurrentAction() == ActionType.HIT_REACT) { 120 pauseMovement(parentObject); 121 parentObject.getVelocity().x = -parentObject.facingDirection.x * HIT_IMPULSE; 122 parentObject.getAcceleration().x = HIT_ACCELERATION; 124 } else if (parentObject.getCurrentAction() == ActionType.DEATH) { 126 if (Utils.close(parentObject.getVelocity().x, 0.0f) 127 && parentObject.touchingGround()) { 144 } else if (parentObject.life <= 0) [all...] |
SimpleCollisionComponent.java | 48 GameObject parentObject = (GameObject) parent; 51 mCurrentPosition.set(parentObject.getCenteredPositionX(), parentObject.getCenteredPositionY()); 58 mMovementDirection, mHitPoint, mHitNormal, parentObject); 62 final float halfWidth = parentObject.width / 2.0f; 63 final float halfHeight = parentObject.height / 2.0f; 65 parentObject.getPosition().x = mHitPoint.x - halfWidth; 69 parentObject.getPosition().y = mHitPoint.y - halfHeight; 77 parentObject.setLastTouchedLeftWallTime(time); 79 parentObject.setLastTouchedRightWallTime(time) [all...] |
SleeperComponent.java | 59 GameObject parentObject = (GameObject) parent; 61 if (parentObject.getCurrentAction() == ActionType.INVALID) { 62 parentObject.setCurrentAction(GameObject.ActionType.IDLE); 69 if (camera.shaking() && camera.pointVisible(parentObject.getPosition(), parentObject.width / 2.0f)) { 72 parentObject.setCurrentAction(GameObject.ActionType.MOVE); 79 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); 80 parentObject.getImpulse().x += mAttackImpulseX * parentObject.facingDirection.x; 81 parentObject.getImpulse().y += mAttackImpulseY [all...] |
SimplePhysicsComponent.java | 41 GameObject parentObject = (GameObject) parent; 43 final Vector2 impulse = parentObject.getImpulse(); 44 float velocityX = parentObject.getVelocity().x + impulse.x; 45 float velocityY = parentObject.getVelocity().y + impulse.y; 47 if ((parentObject.touchingCeiling() && velocityY > 0.0f) 48 || (parentObject.touchingGround() && velocityY < 0.0f)) { 56 if ((parentObject.touchingRightWall() && velocityX > 0.0f) 57 || (parentObject.touchingLeftWall() && velocityX < 0.0f)){ 65 parentObject.getVelocity().set(velocityX, velocityY);
|
LifetimeComponent.java | 79 GameObject parentObject = (GameObject)parent; 83 die(parentObject); 92 Math.abs(parentObject.getPosition().x - camera.getFocusPositionX()); 94 Math.abs(parentObject.getPosition().y - camera.getFocusPositionY()); 98 die(parentObject); 103 if (parentObject.life > 0 && mVulnerableToDeathTiles) { 107 if (hotSpot.getHotSpot(parentObject.getCenteredPositionX(), 108 parentObject.getPosition().y + 10.0f) == HotSpotSystem.HotSpotType.DIE) { 109 parentObject.life = 0; 114 if (parentObject.life > 0 && mDieOnHitBackground) [all...] |
CameraBiasComponent.java | 31 GameObject parentObject = (GameObject)parent; 34 camera.addCameraBias(parentObject.getPosition());
|
CrusherAndouComponent.java | 35 GameObject parentObject = (GameObject)parent; 38 if (parentObject.touchingGround()) { 39 parentObject.setCurrentAction(GameObject.ActionType.IDLE); 44 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); 45 mSwap.activate(parentObject);
|
PlayerComponent.java | 118 protected void move(float time, float timeDelta, GameObject parentObject) { 174 float currentSpeed = parentObject.getVelocity().x; 179 parentObject.getVelocity().x = (currentSpeed); 184 if (parentObject.getVelocity().y + impulse.y > MAX_UPWARD_SPEED 187 if (parentObject.getVelocity().y < MAX_UPWARD_SPEED) { 188 parentObject.getVelocity().y = (MAX_UPWARD_SPEED); 202 parentObject.getVelocity().x = (postDragSpeed); 206 parentObject.getImpulse().add(impulse); 216 GameObject parentObject = (GameObject)parent; 219 mTouchingGround = parentObject.touchingGround() [all...] |
SolidSurfaceComponent.java | 91 GameObject parentObject = (GameObject)parent; 92 final Vector2 position = parentObject.getPosition(); 99 if (parentObject.facingDirection.x < 0.0f) { 100 start.flipHorizontal(parentObject.width); 103 if (parentObject.facingDirection.y < 0.0f) { 104 start.flipVertical(parentObject.height); 109 if (parentObject.facingDirection.x < 0.0f) { 110 end.flipHorizontal(parentObject.width); 113 if (parentObject.facingDirection.y < 0.0f) { 114 end.flipVertical(parentObject.height); [all...] |
HitPlayerComponent.java | 53 GameObject parentObject = (GameObject)parent; 54 mMyPosition.set(parentObject.getCenteredPositionX(), parentObject.getCenteredPositionY()); 60 boolean accepted = mHitReact.receivedHit(parentObject, player, mHitType); 61 playerHitReact.hitVictim(player, parentObject, mHitType, accepted); 64 boolean accepted = playerHitReact.receivedHit(player, parentObject, mHitType); 65 mHitReact.hitVictim(parentObject, player, mHitType, accepted);
|
EnemyAnimationComponent.java | 64 GameObject parentObject = (GameObject) parent; 65 final float velocityX = parentObject.getVelocity().x; 67 GameObject.ActionType currentAction = parentObject.getCurrentAction(); 73 facePlayer(parentObject); 88 final float targetVelocityX = parentObject.getTargetVelocity().x; 92 parentObject.facingDirection.x = -1.0f; 94 parentObject.facingDirection.x = 1.0f; 120 facePlayer(parentObject); 135 private void facePlayer(GameObject parentObject) { 140 if (player.getPosition().x < parentObject.getPosition().x) [all...] |
AttackAtDistanceComponent.java | 46 GameObject parentObject = (GameObject) parent; 53 mDistance.subtract(parentObject.getPosition()); 58 (Utils.sign(player.getPosition().x - parentObject.getPosition().x) 59 == Utils.sign(parentObject.facingDirection.x)); 62 if (parentObject.getCurrentAction() == GameObject.ActionType.ATTACK) { 64 parentObject.setCurrentAction(GameObject.ActionType.IDLE); 70 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); 72 parentObject.setCurrentAction(GameObject.ActionType.IDLE);
|
FixedAnimationComponent.java | 36 GameObject parentObject = (GameObject)parent; 37 SpriteComponent sprite = parentObject.findByClass(SpriteComponent.class);
|
GenericAnimationComponent.java | 36 GameObject parentObject = (GameObject) parent; 37 if (parentObject.facingDirection.x != 0.0f && parentObject.getVelocity().x != 0.0f) { 38 parentObject.facingDirection.x = Utils.sign(parentObject.getVelocity().x); 40 switch(parentObject.getCurrentAction()) {
|
GhostComponent.java | 59 GameObject parentObject = (GameObject) parent; 64 if (parentObject.life > 0) { 72 SpriteComponent sprite = parentObject.findByClass(SpriteComponent.class); 79 if (parentObject.getPosition().y < -parentObject.height) { 81 parentObject.life = 0; 85 parentObject.setCurrentAction(mTargetAction); 87 camera.setTarget(parentObject); 94 parentObject.getTargetVelocity().x = 97 parentObject.getTargetVelocity().y = [all...] |
TheSourceComponent.java | 60 GameObject parentObject = (GameObject)parent; 61 GameObject.ActionType currentAction = parentObject.getCurrentAction(); 66 if (parentObject.life > 0) { 69 mShakeStartPosition = parentObject.getPosition().x; 70 parentObject.setCurrentAction(ActionType.IDLE); 73 parentObject.setCurrentAction(ActionType.DEATH); 93 camera.setTarget(parentObject); 97 parentObject.getPosition().y += offset; 103 float x = ((float)Math.random() - 0.5f) * (parentObject.width * 0.75f); 104 float y = ((float)Math.random() - 0.5f) * (parentObject.height * 0.75f) [all...] |
LauncherComponent.java | 65 GameObject parentObject = (GameObject)parent; 74 fire(mShot, parentObject, mAngle); 77 parentObject.setCurrentAction(ActionType.ATTACK); 80 mShot.setPosition(parentObject.getPosition()); 85 parentObject.setCurrentAction(ActionType.IDLE); 90 public void prepareToLaunch(GameObject object, GameObject parentObject) { 95 fire(mShot, parentObject, mAngle); 104 private void fire(GameObject object, GameObject parentObject, float mAngle) { 109 mLaunchDirection.multiply(parentObject.facingDirection); 124 final Vector2 position = parentObject.getPosition() [all...] |
ButtonAnimationComponent.java | 50 GameObject parentObject = (GameObject)parent; 52 if (parentObject.getCurrentAction() == GameObject.ActionType.HIT_REACT && 53 parentObject.lastReceivedHitType == CollisionParameters.HitType.DEPRESS) { 61 parentObject.setCurrentAction(GameObject.ActionType.IDLE);
|
SelectDialogComponent.java | 42 GameObject parentObject = (GameObject)parent; 43 final Vector2 currentPosition = parentObject.getPosition(); 44 if (mLastPosition.distance2(parentObject.getPosition()) > 0.0f) { 47 final int hitSpot = hotSpot.getHotSpot(parentObject.getCenteredPositionX(), currentPosition.y + 10);
|
BackgroundCollisionComponent.java | 137 GameObject parentObject = (GameObject) parent; 138 parentObject.setBackgroundCollisionNormal(Vector2.ZERO); 149 mCurrentPosition.set(parentObject.getPosition()); 171 parentObject); 174 parentObject); 179 parentObject); 182 parentObject); 235 mVerticalHitNormal, parentObject)) { 267 mHorizontalHitNormal, parentObject)) { 289 parentObject.setLastTouchedLeftWallTime(time) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
AXSVGRoot.cpp | 50 AXObject* AXSVGRoot::parentObject() const 57 return AXRenderObject::parentObject();
|
AXMockObject.h | 43 virtual AXObject* parentObject() const OVERRIDE { return m_parent; }
|
AXSVGRoot.h | 49 virtual AXObject* parentObject() const OVERRIDE;
|