Package res.guns

Source Code of res.guns.GunRage

/* 
  PlAr is Platform Arena: a 2D multiplayer shooting game
  Copyright (c) 2010, Antonio Ragagnin <spocchio@gmail.com>
    All rights reserved.
*/

package res.guns;

import org.jbox2d.common.Vec2;

import plar.core.Gun;

import plar.core.ElementBullet;

public class GunRage extends Gun {

  public GunRage() {
    super();
    gunName = "Rage Gun";
    gunUseAmmo = 10;

  }

  public void createBullet() {

    ElementBullet shoot = new ElementBullet();
    initializeShoot(shoot);
    shoot.hitDamage = 100;
    shoot.setSpeed(new Vec2(3 * D().x, 3 * D().y));
    //initializeShoot(shoot);
    //addAmmo(-gunUseAmmo);

  }

TOP

Related Classes of res.guns.GunRage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.