public class BulletForGun
{
	public short gunID;

	public Image bullImage;

	public sbyte bullType;

	public static int nMustGet;

	public static MyVector vBulls = new MyVector();

	public BulletForGun(short gunId, Image bullImage, sbyte bullType)
	{
		CRes.outz("gun id create " + gunId);
		gunID = gunId;
		this.bullImage = bullImage;
		this.bullType = bullType;
	}

	public static BulletForGun getBull(int id)
	{
		for (int i = 0; i < vBulls.size(); i++)
		{
			BulletForGun bulletForGun = (BulletForGun)vBulls.elementAt(i);
			if (bulletForGun.gunID == id)
			{
				return bulletForGun;
			}
		}
		return null;
	}

	public static bool isExistBull(int id)
	{
		for (int i = 0; i < vBulls.size(); i++)
		{
			BulletForGun bulletForGun = (BulletForGun)vBulls.elementAt(i);
			if (bulletForGun.gunID == id)
			{
				return true;
			}
		}
		return false;
	}
}
