1 package gui
.module3d
.weapons
;
7 public abstract class CWeapon
{
8 public static final int UNKNOWN_WEAPON_TYPE
= -1;
9 public static final int NORMAL_WEAPON_TYPE
= 0;
10 public static final int ROCKET_WEAPON_TYPE
= 1;
11 public static final int LIGHT_WEAPON_TYPE
= 2;
13 protected int MaxAmmo
;
14 protected int BulletFlow
; // plus il est petit et plus c'est rapide
15 protected String name
;
16 protected int currentAmmo
;
20 public CWeapon(int MaxAmmo
,int BulletFlow
,String name
, int pType
,int damage
)
23 this.BulletFlow
=BulletFlow
;
30 public int GetBulletFlow()
35 public String
GetName()
40 public int GetcurrentAmmo()
44 public int GetMaxAmmo()
49 public Boolean
Shoot()
63 public int getDamage()
73 public abstract int WeaponType();