public void Limpar() { naves = new Texture2D[2]; acabouJogo = false; keyboardState = new KeyboardState(); carregou = false; limpa = new Limpeza(this.game); colisao = new Colisao(this.game); acabouJogo = false; Components.Remove(pShip); Components.Remove(sfShip); }
public override void poderEspecial() { // Máximo de Misseis que podem ser lançados 100 (diminui 1 a cada tiro) List <Nave> naves = recuperaComponentesNave(); Colisao cl = new Colisao(getGame()); int totalMisseisDestaNave = cl.recuperaComponentesMisseisTotal(); if (totalMisseisDestaNave < 100) { foreach (Nave nave in naves) { if (!(nave is attackshiperShip)) { PursuitRocket missil = new PursuitRocket(Game, this, getPosicaoTirosNave(), 0.0f, 5.0f, 300.0f, 350.0f, nave); missil.setBatch(getBatch()); getGame().Components.Add(missil); } } } }
public override void Initialize() { base.Initialize(); colisao = new Colisao(this.game); }
protected Nave(Game game) : base(game) { this.colisao = new Colisao(game); }