Home
last modified time | relevance | path

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

/external/replicaisland/src/com/replica/replicaisland/
DDoorAnimationComponent.java39 private SpriteComponent mSprite; field in DoorAnimationComponent
55 mSprite = null; in reset()
65 if (mSprite != null) { in open()
66 final float openAnimationLength = mSprite.findAnimation(Animation.OPENING).getLength(); in open()
72 mSprite.playAnimation(Animation.OPEN); in open()
84 timeOffset = openAnimationLength - mSprite.getCurrentAnimationTime(); in open()
92 mSprite.playAnimation(Animation.OPENING); in open()
93 mSprite.setCurrentAnimationTime(timeOffset); in open()
106 if (mSprite != null) { in close()
107 final float closeAnimationLength = mSprite.findAnimation(Animation.CLOSING).getLength(); in close()
[all …]
DGenericAnimationComponent.java20 private SpriteComponent mSprite; field in GenericAnimationComponent
30 mSprite = null; in reset()
35 if (mSprite != null) { in update()
43 mSprite.playAnimation(Animation.IDLE); in update()
46 mSprite.playAnimation(Animation.MOVE); in update()
49 mSprite.playAnimation(Animation.ATTACK); in update()
52 mSprite.playAnimation(Animation.HIT_REACT); in update()
55 mSprite.playAnimation(Animation.DEATH); in update()
58 mSprite.playAnimation(Animation.HIDE); in update()
61 mSprite.playAnimation(Animation.FROZEN); in update()
[all …]
DAnimationComponent.java48 private SpriteComponent mSprite; field in AnimationComponent
86 mSprite = null; in reset()
107 if (mSprite != null) { in update()
218 mSprite.playAnimation(PlayerAnimations.IDLE.ordinal()); in update()
220 mSprite.playAnimation(PlayerAnimations.MOVE_FAST.ordinal()); in update()
222 mSprite.playAnimation(PlayerAnimations.MOVE.ordinal()); in update()
241 mSprite.playAnimation(PlayerAnimations.BOOST_UP.ordinal()); in update()
243 mSprite.playAnimation(PlayerAnimations.BOOST_MOVE_FAST.ordinal()); in update()
245 mSprite.playAnimation(PlayerAnimations.BOOST_MOVE.ordinal()); in update()
250 mSprite.playAnimation(PlayerAnimations.IDLE.ordinal()); in update()
[all …]
DEnemyAnimationComponent.java44 private SpriteComponent mSprite; field in EnemyAnimationComponent
58 mSprite = null; in reset()
63 if (mSprite != null) { in update()
71 mSprite.playAnimation(EnemyAnimations.IDLE.ordinal()); in update()
87 mSprite.playAnimation(EnemyAnimations.MOVE.ordinal()); in update()
106 mSprite.playAnimation(EnemyAnimations.ATTACK.ordinal()); in update()
108 && mSprite.animationFinished()) { in update()
113 mSprite.playAnimation(EnemyAnimations.HIDDEN.ordinal()); in update()
123 mSprite.playAnimation(EnemyAnimations.APPEAR.ordinal()); in update()
124 if (mSprite.animationFinished()) { in update()
[all …]
DButtonAnimationComponent.java28 private SpriteComponent mSprite; field in ButtonAnimationComponent
41 mSprite = null; in reset()
49 if (mSprite != null) { in update()
54 if (mSprite.getCurrentAnimation() == Animation.UP) { in update()
60 mSprite.playAnimation(Animation.DOWN); in update()
68 mSprite.playAnimation(Animation.UP); in update()
75 mSprite = sprite; in setSprite()
DNPCAnimationComponent.java43 private SpriteComponent mSprite; field in NPCAnimationComponent
61 mSprite = null; in reset()
68 if (mSprite != null) { in update()
115 mSprite.playAnimation(mCurrentAnimation); in update()
172 && mSprite.findAnimation(TAKE_HIT) != null) { in shouldTakeHit()
179 if (mSprite.findAnimation(RUN_START) != null) { in gotoRunStart()
248 if (mSprite.animationFinished()) { in runStart()
285 if (mSprite.animationFinished() || parentObject.getCurrentAction() != ActionType.ATTACK) { in shoot()
312 if (mSprite.animationFinished()) { in jumpStart()
348 if (mSprite.animationFinished()) { in takeHit()
[all …]