Back to project page zomblind.
The source code is released under:
Apache License
If you think the Android project zomblind listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package antares.zomblind.core.levels.checker; //ww w . ja v a2 s . co m import android.content.Context; import antares.zomblind.ZomblindActivity; import antares.zomblind.core.objetos.ArmaLista.tipo_arma; public class Todos implements _Chequeador{ ZomblindActivity _z; public Todos(Context ctx) { _z = (ZomblindActivity) ctx; } public boolean test(){ boolean res = false; if (_z._acelerometro.golpe_izquierda()) { _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO).usar(); _z._entorno._npcs.atacar(0, _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO)); res = true; } if (_z._acelerometro.golpe_frente()) { _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO).usar(); _z._entorno._npcs.atacar(1, _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO)); res = true; } if (_z._acelerometro.golpe_derecha()) { _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO).usar(); _z._entorno._npcs.atacar(2, _z._entorno._jugador._armas.getArma(tipo_arma.CUERPO)); res = true; } if (_z._acelerometro.recargar()) { _z._entorno._jugador._armas.getArma(tipo_arma.DISTANCIA).recargar(); res = true; } int disparo = _z._pantalla.isDisparando(); if (disparo >= 0) { if (_z._entorno._jugador._armas.getArma(tipo_arma.DISTANCIA).usar()) { _z._entorno._npcs.atacar(disparo,_z._entorno._jugador._armas.getArma(tipo_arma.DISTANCIA)); res = true; } } return res; } }