Home
last modified time | relevance | path

Searched refs:parentObject (Results 1 – 25 of 37) sorted by relevance

12

/external/replicaisland/src/com/replica/replicaisland/
DNPCAnimationComponent.java69 GameObject parentObject = (GameObject)parent; in update() local
74 idle(parentObject); in update()
77 walk(parentObject); in update()
80 runStart(parentObject); in update()
83 run(parentObject); in update()
86 shoot(parentObject); in update()
89 jumpStart(parentObject); in update()
92 jumpAir(parentObject); in update()
95 takeHit(parentObject); in update()
98 surprised(parentObject); in update()
[all …]
DPatrolComponent.java70 GameObject parentObject = (GameObject) parent; in update() local
72 if (parentObject.getCurrentAction() == ActionType.INVALID in update()
73 || parentObject.getCurrentAction() == ActionType.HIT_REACT) { in update()
74 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in update()
77 if ((mFlying || parentObject.touchingGround()) && parentObject.life > 0) { in update()
85 updateAttack(player, parentObject); in update()
89 if (parentObject.getCurrentAction() == GameObject.ActionType.MOVE in update()
95 hotSpot = hotSpotSystem.getHotSpot(parentObject.getCenteredPositionX(), in update()
96 parentObject.getPosition().y + 10.0f); in update()
98 final float targetVelocityX = parentObject.getTargetVelocity().x; in update()
[all …]
DNPCComponent.java114 GameObject parentObject = (GameObject)parent; in update() local
118 parentObject.getCurrentAction() == ActionType.HIT_REACT) { in update()
120 pauseMovement(parentObject); in update()
121 parentObject.getVelocity().x = -parentObject.facingDirection.x * HIT_IMPULSE; in update()
122 parentObject.getAcceleration().x = HIT_ACCELERATION; in update()
124 } else if (parentObject.getCurrentAction() == ActionType.DEATH) { in update()
126 if (Utils.close(parentObject.getVelocity().x, 0.0f) in update()
127 && parentObject.touchingGround()) { in update()
144 } else if (parentObject.life <= 0) { in update()
145 parentObject.setCurrentAction(ActionType.DEATH); in update()
[all …]
DPlayerComponent.java118 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()
[all …]
DGhostComponent.java59 GameObject parentObject = (GameObject) parent; in update() local
64 if (parentObject.life > 0) { in update()
72 SpriteComponent sprite = parentObject.findByClass(SpriteComponent.class); in update()
79 if (parentObject.getPosition().y < -parentObject.height) { in update()
81 parentObject.life = 0; in update()
85 parentObject.setCurrentAction(mTargetAction); in update()
87 camera.setTarget(parentObject); in update()
94 parentObject.getTargetVelocity().x = in update()
97 parentObject.getTargetVelocity().y = in update()
100 parentObject.getAcceleration().x = mAcceleration; in update()
[all …]
DLifetimeComponent.java79 GameObject parentObject = (GameObject)parent; in update() local
83 die(parentObject); in update()
92 Math.abs(parentObject.getPosition().x - camera.getFocusPositionX()); in update()
94 Math.abs(parentObject.getPosition().y - camera.getFocusPositionY()); in update()
98 die(parentObject); in update()
103 if (parentObject.life > 0 && mVulnerableToDeathTiles) { in update()
107 if (hotSpot.getHotSpot(parentObject.getCenteredPositionX(), in update()
108 parentObject.getPosition().y + 10.0f) == HotSpotSystem.HotSpotType.DIE) { in update()
109 parentObject.life = 0; in update()
114 if (parentObject.life > 0 && mDieOnHitBackground) { in update()
[all …]
DSimpleCollisionComponent.java48 GameObject parentObject = (GameObject) parent; in update() local
51 … mCurrentPosition.set(parentObject.getCenteredPositionX(), parentObject.getCenteredPositionY()); in update()
58 mMovementDirection, mHitPoint, mHitNormal, parentObject); in update()
62 final float halfWidth = parentObject.width / 2.0f; in update()
63 final float halfHeight = parentObject.height / 2.0f; in update()
65 parentObject.getPosition().x = mHitPoint.x - halfWidth; in update()
69 parentObject.getPosition().y = mHitPoint.y - halfHeight; in update()
77 parentObject.setLastTouchedLeftWallTime(time); in update()
79 parentObject.setLastTouchedRightWallTime(time); in update()
83 parentObject.setLastTouchedFloorTime(time); in update()
[all …]
DSleeperComponent.java59 GameObject parentObject = (GameObject) parent; in update() local
61 if (parentObject.getCurrentAction() == ActionType.INVALID) { in update()
62 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
69 …if (camera.shaking() && camera.pointVisible(parentObject.getPosition(), parentObject.width / 2.0f)… in update()
72 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in update()
79 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update()
80 parentObject.getImpulse().x += mAttackImpulseX * parentObject.facingDirection.x; in update()
81 parentObject.getImpulse().y += mAttackImpulseY; in update()
85 if (parentObject.touchingGround() && parentObject.getVelocity().y < 0.0f) { in update()
88 parentObject.getVelocity().zero(); in update()
[all …]
DTheSourceComponent.java60 GameObject parentObject = (GameObject)parent; in update() local
61 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update()
66 if (parentObject.life > 0) { in update()
69 mShakeStartPosition = parentObject.getPosition().x; in update()
70 parentObject.setCurrentAction(ActionType.IDLE); in update()
73 parentObject.setCurrentAction(ActionType.DEATH); in update()
93 camera.setTarget(parentObject); in update()
97 parentObject.getPosition().y += offset; in update()
103 float x = ((float)Math.random() - 0.5f) * (parentObject.width * 0.75f); in update()
104 float y = ((float)Math.random() - 0.5f) * (parentObject.height * 0.75f); in update()
[all …]
DSolidSurfaceComponent.java91 GameObject parentObject = (GameObject)parent; in update() local
92 final Vector2 position = parentObject.getPosition(); in update()
99 if (parentObject.facingDirection.x < 0.0f) { in update()
100 start.flipHorizontal(parentObject.width); in update()
103 if (parentObject.facingDirection.y < 0.0f) { in update()
104 start.flipVertical(parentObject.height); in update()
109 if (parentObject.facingDirection.x < 0.0f) { in update()
110 end.flipHorizontal(parentObject.width); in update()
113 if (parentObject.facingDirection.y < 0.0f) { in update()
114 end.flipVertical(parentObject.height); in update()
[all …]
DSimplePhysicsComponent.java41 GameObject parentObject = (GameObject) parent; in update() local
43 final Vector2 impulse = parentObject.getImpulse(); in update()
44 float velocityX = parentObject.getVelocity().x + impulse.x; in update()
45 float velocityY = parentObject.getVelocity().y + impulse.y; in update()
47 if ((parentObject.touchingCeiling() && velocityY > 0.0f) in update()
48 || (parentObject.touchingGround() && velocityY < 0.0f)) { in update()
56 if ((parentObject.touchingRightWall() && velocityX > 0.0f) in update()
57 || (parentObject.touchingLeftWall() && velocityX < 0.0f)){ in update()
65 parentObject.getVelocity().set(velocityX, velocityY); in update()
DEnemyAnimationComponent.java64 GameObject parentObject = (GameObject) parent; in update() local
65 final float velocityX = parentObject.getVelocity().x; in update()
67 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update()
73 facePlayer(parentObject); in update()
88 final float targetVelocityX = parentObject.getTargetVelocity().x; in update()
92 parentObject.facingDirection.x = -1.0f; in update()
94 parentObject.facingDirection.x = 1.0f; in update()
120 facePlayer(parentObject); in update()
135 private void facePlayer(GameObject parentObject) { in facePlayer() argument
140 if (player.getPosition().x < parentObject.getPosition().x) { in facePlayer()
[all …]
DLauncherComponent.java65 GameObject parentObject = (GameObject)parent; in update() local
74 fire(mShot, parentObject, mAngle); in update()
77 parentObject.setCurrentAction(ActionType.ATTACK); in update()
80 mShot.setPosition(parentObject.getPosition()); in update()
85 parentObject.setCurrentAction(ActionType.IDLE); in update()
90 public void prepareToLaunch(GameObject object, GameObject parentObject) { in prepareToLaunch() argument
95 fire(mShot, parentObject, mAngle); in prepareToLaunch()
104 private void fire(GameObject object, GameObject parentObject, float mAngle) { in fire() argument
109 mLaunchDirection.multiply(parentObject.facingDirection); in fire()
124 final Vector2 position = parentObject.getPosition(); in fire()
[all …]
DBackgroundCollisionComponent.java137 GameObject parentObject = (GameObject) parent; in update() local
138 parentObject.setBackgroundCollisionNormal(Vector2.ZERO); in update()
149 mCurrentPosition.set(parentObject.getPosition()); in update()
171 parentObject); in update()
174 parentObject); in update()
179 parentObject); in update()
182 parentObject); in update()
235 mVerticalHitNormal, parentObject)) { in update()
267 mHorizontalHitNormal, parentObject)) { in update()
289 parentObject.setLastTouchedLeftWallTime(time); in update()
[all …]
DAnimationComponent.java109 GameObject parentObject = (GameObject) parent; in update() local
111 final float velocityX = parentObject.getVelocity().x; in update()
112 final float velocityY = parentObject.getVelocity().y; in update()
115 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update()
134 final boolean touchingGround = parentObject.touchingGround(); in update()
196 if (parentObject.life == 1 && !mDamageSwap.getCurrentlySwapped()) { in update()
197 mDamageSwap.activate(parentObject); in update()
198 } else if (parentObject.life != 1 && mDamageSwap.getCurrentlySwapped()) { in update()
199 mDamageSwap.activate(parentObject); in update()
209 parentObject.facingDirection.x = -1.0f; in update()
[all …]
DAttackAtDistanceComponent.java46 GameObject parentObject = (GameObject) parent; in update() local
53 mDistance.subtract(parentObject.getPosition()); in update()
58 (Utils.sign(player.getPosition().x - parentObject.getPosition().x) in update()
59 == Utils.sign(parentObject.facingDirection.x)); in update()
62 if (parentObject.getCurrentAction() == GameObject.ActionType.ATTACK) { in update()
64 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
70 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update()
72 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
DHitPlayerComponent.java53 GameObject parentObject = (GameObject)parent; in update() local
54 mMyPosition.set(parentObject.getCenteredPositionX(), parentObject.getCenteredPositionY()); in update()
60 boolean accepted = mHitReact.receivedHit(parentObject, player, mHitType); in update()
61 playerHitReact.hitVictim(player, parentObject, mHitType, accepted); in update()
64 boolean accepted = playerHitReact.receivedHit(player, parentObject, mHitType); in update()
65 mHitReact.hitVictim(parentObject, player, mHitType, accepted); in update()
DGenericAnimationComponent.java36 GameObject parentObject = (GameObject) parent; in update() local
37 if (parentObject.facingDirection.x != 0.0f && parentObject.getVelocity().x != 0.0f) { in update()
38 parentObject.facingDirection.x = Utils.sign(parentObject.getVelocity().x); in update()
40 switch(parentObject.getCurrentAction()) { in update()
DLaunchProjectileComponent.java88 GameObject parentObject = (GameObject) parent; in update() local
94 if (parentObject.getCurrentAction() == mRequiredAction in update()
112 launch(parentObject); in update()
129 private void launch(GameObject parentObject) { in launch() argument
137 if (parentObject.facingDirection.x < 0.0f) { in launch()
138 offsetX = parentObject.width - mOffsetX; in launch()
142 if (parentObject.facingDirection.y < 0.0f) { in launch()
143 offsetY = parentObject.height - mOffsetY; in launch()
146 final float x = parentObject.getPosition().x + offsetX; in launch()
147 final float y = parentObject.getPosition().y + offsetY; in launch()
DCrusherAndouComponent.java35 GameObject parentObject = (GameObject)parent; in update() local
38 if (parentObject.touchingGround()) { in update()
39 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
44 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update()
45 mSwap.activate(parentObject); in update()
DPhysicsComponent.java55 GameObject parentObject = (GameObject) parent; in update() local
58 Vector2 impulseVector = parentObject.getImpulse(); in update()
60 final Vector2 currentVelocity = parentObject.getVelocity(); in update()
62 final Vector2 surfaceNormal = parentObject.getBackgroundCollisionNormal(); in update()
82 final boolean touchingFloor = parentObject.touchingGround(); in update()
84 GravityComponent gravity = parentObject.findByClass(GravityComponent.class); in update()
120 parentObject.setVelocity(newVelocity); in update()
121 parentObject.setTargetVelocity(newVelocity); in update()
122 parentObject.setAcceleration(Vector2.ZERO); in update()
123 parentObject.setImpulse(Vector2.ZERO); in update()
DPopOutComponent.java62 GameObject parentObject = (GameObject) parent; in update() local
69 mDistance.subtract(parentObject.getPosition()); in update()
76 parentObject.setCurrentAction(GameObject.ActionType.HIDE); in update()
83 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
93 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Duplication/
DImport.c109 OBJECT *parentObject; in TPM2_Import() local
126 parentObject = HandleToObject(in->parentHandle); in TPM2_Import()
128 if(!ObjectIsParent(parentObject)) in TPM2_Import()
155 if(parentObject->publicArea.type == TPM_ALG_SYMCIPHER) in TPM2_Import()
161 result = CryptSecretDecrypt(parentObject, NULL, DUPLICATE_STRING, in TPM2_Import()
182 result = DuplicateToSensitive(&in->duplicate.b, &name.b, parentObject, in TPM2_Import()
192 if(IS_ATTRIBUTE(parentObject->publicArea.objectAttributes, TPMA_OBJECT, fixedTPM)) in TPM2_Import()
202 SensitiveToPrivate(&sensitive, &name, parentObject, in TPM2_Import()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/
DLoad.c75 OBJECT *parentObject; in TPM2_Load() local
87 parentObject = HandleToObject(in->parentHandle); in TPM2_Load()
88 pAssert(parentObject != NULL); in TPM2_Load()
90 if(!ObjectIsParent(parentObject)) in TPM2_Load()
100 result = PrivateToSensitive(&in->inPrivate.b, &out->name.b, parentObject, in TPM2_Load()
108 result = ObjectLoad(newObject, parentObject, in TPM2_Load()
DCreate.c94 OBJECT *parentObject; in TPM2_Create() local
99 parentObject = HandleToObject(in->parentHandle); in TPM2_Create()
100 pAssert(parentObject != NULL); in TPM2_Create()
103 if(!ObjectIsParent(parentObject)) in TPM2_Create()
122 result = CreateChecks(parentObject, publicArea, in TPM2_Create()
145 SensitiveToPrivate(&newObject->sensitive, &newObject->name, parentObject, in TPM2_Create()

12