public boolean hitByAttack(GameSprite enemy) { if (enemy instanceof Seeker) { Seeker ss = (Seeker) enemy; ss.scream(); } this.dieNow(); /* if (m_dying == false) { Gdx.app.debug("PlayerSprite", "dying!!!!"); this.playSound("vaporize", 0.8f); m_inHit = false; m_ignoreHits = 0; m_explodeDeath = true; m_energy = 0; this.stopAllAnimations(); m_invincibleAnimation.stop(); this.stopSound("buggyDrive"); PooledEffect effect = m_gameLayer.bombEffectPool.obtain(); effect.setPosition(this.getX()+this.getWidth()/2, this.getY()); m_gameLayer.addParticleEffect(effect); this.runAnimation(m_throughDoorAnimation); m_dying = true; m_deadState = 1; return true; } */ return true; }
// This is an overload of redetectCaptureDevices. It is meant to only redetect devices for // one CaptureDeviceManager. For instance discover NetworkEncoder devices public void redetectCaptureDevices(CaptureDeviceManager mgr) { if (Sage.DBG) System.out.println("MMC is re-doing the capture device detection on " + mgr); mgr.detectCaptureDevices( (CaptureDevice[]) globalEncoderMap.values().toArray(new CaptureDevice[0])); CaptureDevice[] newDevs = mgr.getCaptureDevices(); if (Sage.DBG) System.out.println("devices detected=" + java.util.Arrays.asList(newDevs)); updateCaptureDeviceObjects(newDevs); if (Sage.DBG) System.out.println("EncoderMap=" + globalEncoderMap); NetworkClient.distributeRecursivePropertyChange("mmc/encoders"); Seeker.getInstance().kick(); Scheduler.getInstance().kick(true); }