예제 #1
0
 public void killShell()
 {
     //this is what happens when a shell explodes
     if(shell != null)
     {
         blasts[1] = new Blast(this,shell.x-40,shell.y-40,80,35);
         shell = null;
         creatorGame.myGameScreen.drawFrame();
         creatorGame.myGameScreen.resetExplotionLayer();
     }
 }
예제 #2
0
        public void useTorch()
        {
            damage = creator.bombDamage;
            for(int b =blasts.Length -1; b >= 0; b--)
            {
                if(this.facingleft)
                    blasts[b] = new Blast(this,x - (30*(b+3)),y-40,60,0);
                else
                    blasts[b] = new Blast(this,x + (30*b+2),y-40,60,0);
            }

            stopTurn();
            this.bombsLeft--;
        }
예제 #3
0
        public void fireShield()
        {
            damage = creator.sheildDamage;
            blasts[0] = new Blast(this,x - 60,y-40,60,0);
            blasts[1] = new Blast(this,x,y-40,60,0);
            blasts[2] = new Blast(this,x-30,y-70,60,0);
            blasts[3] = new Blast(this,x-30,y,60,0);

            blasts[4] = new Blast(this,x - 120,y-40,60,0);
            blasts[5] = new Blast(this,x+60,y-40,60,0);
            stopTurn();
            fireSheildsLeft--;
        }