/external/replicaisland/src/com/replica/replicaisland/ |
D | GameObjectManager.java | 39 private FixedSizeArray<GameObject> mMarkedForDeathObjects; 40 private GameObject mPlayer; 52 mMarkedForDeathObjects = new FixedSizeArray<GameObject>(MAX_GAME_OBJECTS); in GameObjectManager() 68 factory.destroy((GameObject)deathArray[x]); in commitUpdates() 88 GameObject gameObject = (GameObject)objectArray[i]; in update() 114 GameObject gameObject = (GameObject)inactiveArray[i]; in update() 137 if (object instanceof GameObject) { in add() 150 public void destroy(GameObject object) { in destroy() 162 mMarkedForDeathObjects.add((GameObject)objects.get(i)); in destroyAll() 168 mMarkedForDeathObjects.add((GameObject)mInactiveObjects.get(j)); in destroyAll() [all …]
|
D | NPCAnimationComponent.java | 20 import com.replica.replicaisland.GameObject.ActionType; 69 GameObject parentObject = (GameObject)parent; in update() 120 protected boolean shouldFall(GameObject parentObject) { in shouldFall() 133 protected boolean shouldJump(GameObject parentObject) { in shouldJump() 145 protected boolean shouldRun(GameObject parentObject) { in shouldRun() 156 protected boolean shouldMove(GameObject parentObject) { in shouldMove() 169 protected boolean shouldTakeHit(GameObject parentObject) { in shouldTakeHit() 190 protected void idle(GameObject parentObject) { in idle() 191 final GameObject.ActionType currentAction = parentObject.getCurrentAction(); in idle() 216 protected void walk(GameObject parentObject) { in walk() [all …]
|
D | EnemyAnimationComponent.java | 64 GameObject parentObject = (GameObject) parent; in update() 67 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update() 76 if (currentAction == GameObject.ActionType.ATTACK) { in update() 78 } else if (currentAction == GameObject.ActionType.HIDE) { in update() 97 if (currentAction == GameObject.ActionType.ATTACK) { in update() 99 } else if (currentAction == GameObject.ActionType.HIDE) { in update() 107 if (currentAction != GameObject.ActionType.ATTACK in update() 114 if (currentAction != GameObject.ActionType.HIDE) { in update() 135 private void facePlayer(GameObject parentObject) { in facePlayer() 138 GameObject player = manager.getPlayer(); in facePlayer()
|
D | ChangeComponentsComponent.java | 32 private GameObject.ActionType mSwapOnAction; 33 private GameObject.ActionType mLastAction; 75 mSwapOnAction = GameObject.ActionType.INVALID; in reset() 76 mLastAction = GameObject.ActionType.INVALID; in reset() 83 if (mSwapOnAction != GameObject.ActionType.INVALID) { in update() 84 GameObject parentObject = (GameObject)parent; in update() 85 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update() 107 public void setSwapAction(GameObject.ActionType action) { in setSwapAction() 115 public void activate(GameObject parent) { in activate()
|
D | AttackAtDistanceComponent.java | 46 GameObject parentObject = (GameObject) parent; in update() 50 GameObject player = manager.getPlayer(); 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()
|
D | LauncherComponent.java | 19 import com.replica.replicaisland.GameObject.ActionType; 26 private GameObject mShot; 65 GameObject parentObject = (GameObject)parent; in update() 90 public void prepareToLaunch(GameObject object, GameObject parentObject) { in prepareToLaunch() 104 private void fire(GameObject object, GameObject parentObject, float mAngle) { in fire() 126 GameObject effect = factory.spawn(mLaunchEffect, in fire()
|
D | SleeperComponent.java | 19 import com.replica.replicaisland.GameObject.ActionType; 59 GameObject parentObject = (GameObject) parent; in update() 62 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update() 72 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in update() 79 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update() 94 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
|
D | GhostComponent.java | 28 private GameObject.ActionType mTargetAction; 31 private GameObject.ActionType mButtonPressedAction; 49 mTargetAction = GameObject.ActionType.MOVE; in reset() 52 mButtonPressedAction = GameObject.ActionType.INVALID; in reset() 59 GameObject parentObject = (GameObject) parent; in update() 154 public final void releaseControl(GameObject parentObject) { in releaseControl() 156 GameObject player = null; in releaseControl() 223 public final void setTargetAction(GameObject.ActionType action) { in setTargetAction() 231 public final void changeActionOnButton(GameObject.ActionType pressedAction) { in changeActionOnButton()
|
D | PlayerComponent.java | 20 import com.replica.replicaisland.GameObject.ActionType; 118 protected void move(float time, float timeDelta, GameObject parentObject) { in move() 216 GameObject parentObject = (GameObject)parent; in update() 326 protected void gotoMove(GameObject parentObject) { in gotoMove() 327 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in gotoMove() 331 protected void stateMove(float time, float timeDelta, GameObject parentObject) { in stateMove() 358 GameObject ghost = factory.spawnPlayerGhost(x, y, parentObject, ghostTime); in stateMove() 375 protected void gotoStomp(GameObject parentObject) { in gotoStomp() 376 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in gotoStomp() 385 protected void stateStomp(float time, float timeDelta, GameObject parentObject) { in stateStomp() [all …]
|
D | PatrolComponent.java | 19 import com.replica.replicaisland.GameObject.ActionType; 70 GameObject parentObject = (GameObject) parent; in update() 74 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in update() 79 GameObject player = null; in update() 89 if (parentObject.getCurrentAction() == GameObject.ActionType.MOVE in update() 201 private void updateAttack(GameObject player, GameObject parentObject) { in updateAttack() 215 if (visible && parentObject.getCurrentAction() == GameObject.ActionType.MOVE) { in updateAttack() 239 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in updateAttack() 246 } else if (parentObject.getCurrentAction() == GameObject.ActionType.ATTACK) { in updateAttack() 248 parentObject.setCurrentAction(GameObject.ActionType.MOVE); in updateAttack()
|
D | PopOutComponent.java | 62 GameObject parentObject = (GameObject) parent; in update() 66 GameObject player = manager.getPlayer(); 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()
|
D | CrusherAndouComponent.java | 35 GameObject parentObject = (GameObject)parent; in update() 39 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update() 44 parentObject.setCurrentAction(GameObject.ActionType.ATTACK); in update()
|
D | LaunchProjectileComponent.java | 19 import com.replica.replicaisland.GameObject.ActionType; 33 private GameObject.ActionType mRequiredAction; 88 GameObject parentObject = (GameObject) parent; in update() 129 private void launch(GameObject parentObject) { in launch() 148 GameObject object = factory.spawn(mObjectTypeToSpawn, x, y, flip); in launch() 211 public final void setRequiredAction(GameObject.ActionType requiredAction) { in setRequiredAction()
|
D | HitReactionComponent.java | 20 import com.replica.replicaisland.GameObject.ActionType; 21 import com.replica.replicaisland.GameObject.Team; 101 public void hitVictim(GameObject parent, GameObject victim, int hitType, in hitVictim() 137 GameObject object = factory.spawn(mSpawnOnDealHitObjectType, x, in hitVictim() 149 public boolean receivedHit(GameObject parent, GameObject attacker, int hitType) { in receivedHit() 247 GameObject parentObject = (GameObject)parent; in update()
|
D | ButtonAnimationComponent.java | 50 GameObject parentObject = (GameObject)parent; in update() 52 if (parentObject.getCurrentAction() == GameObject.ActionType.HIT_REACT && in update() 61 parentObject.setCurrentAction(GameObject.ActionType.IDLE); in update()
|
D | TheSourceComponent.java | 19 import com.replica.replicaisland.GameObject.ActionType; 60 GameObject parentObject = (GameObject)parent; in update() 61 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update() 105 GameObject object = in update()
|
D | LevelBuilder.java | 47 public GameObject buildBackground(int backgroundImage, int levelWidth, int levelHeight) { in buildBackground() 51 GameObject background = new GameObject(); in buildBackground() 119 public void addTileMapLayer(GameObject background, int priority, float scrollSpeed, in addTileMapLayer() 186 public void promoteForegroundLayer(GameObject backgroundObject) { in promoteForegroundLayer()
|
D | DoorAnimationComponent.java | 64 private void open(float timeSinceTriggered, GameObject parentObject) { in open() 105 private void close(float timeSinceTriggered, GameObject parentObject) { in close() 146 open(delta, (GameObject)parent); in update() 150 close(delta, (GameObject)parent); in update() 164 ((GameObject)parent).add(mSolidSurface); in update()
|
D | OrbitalMagnetComponent.java | 56 GameObject player = manager.getPlayer(); in update() 58 GameObject parentObject = (GameObject)parent; in update() 67 private void applyMagnetism(GameObject target, float centerX, float centerY, float timeDelta) { in applyMagnetism()
|
D | HitPlayerComponent.java | 50 GameObject player = manager.getPlayer(); in update() 53 GameObject parentObject = (GameObject)parent; in update()
|
D | LifetimeComponent.java | 79 GameObject parentObject = (GameObject)parent; in update() 126 private void die(GameObject parentObject) { in die() 145 GameObject object = factory.spawn(mSpawnOnDeathType, parentObject.getPosition().x, in die()
|
D | AnimationComponent.java | 21 import com.replica.replicaisland.GameObject.ActionType; 57 private GameObject.ActionType mPreviousAction; 109 GameObject parentObject = (GameObject) parent; in update() 115 GameObject.ActionType currentAction = parentObject.getCurrentAction(); in update() 302 …GameObject explosion = factory.spawnEffectExplosionGiant(parentObject.getPosition().x, parentObjec… in update()
|
D | GameObjectFactory.java | 24 import com.replica.replicaisland.GameObject.ActionType; 25 import com.replica.replicaisland.GameObject.Team; 370 public void destroy(GameObject object) { 384 public GameObject spawn(GameObjectType type, float x, float y, boolean horzFlip) { 385 GameObject newObject = null; 587 GameObject object = spawn(type, worldX, worldY, false); 632 private void addStaticData(GameObjectType type, GameObject object, SpriteComponent sprite) { 691 public GameObject spawnPlayer(float positionX, float positionY) { 694 GameObject object = mGameObjectPool.allocate(); 1161 public GameObject spawnEnemyBrobot(float positionX, float positionY, boolean flipHorizontal) { [all …]
|
D | CameraBiasComponent.java | 31 GameObject parentObject = (GameObject)parent; in update()
|
D | FixedAnimationComponent.java | 36 GameObject parentObject = (GameObject)parent; in update()
|