Ejemplo n.º 1
0
		public Bullet FireBullet(double dPower)
		{
			if (dPower < 0.1) dPower = 0.1;
			if (dPower > 3.0) dPower = 3.0;

			if (m_lLastFireTime + 30 < Time)
			{
				m_lLastFireTime = Time;
				Bullet pBullet = new Bullet(this, dPower, 6.0);
				m_pBullets.Add(pBullet);
				return pBullet;
			}
			return null;
		}