예제 #1
0
 public ShotTypeSetter FocusShotSetter(IShotType one, IShotType two, IShotType three)
 {
     //ShotLoad
     _focusShot = new List <IShotType>();
     _focusShot.Add(one);
     _focusShot.Add(two);
     _focusShot.Add(three);
     return(this);
 }
예제 #2
0
 public ShotTypeSetter SecondaryShotSetter(IShotType one, IShotType two, IShotType three)
 {
     //ShotLoad
     _secondaryShot = new List <IShotType>();
     _secondaryShot.Add(one);
     _secondaryShot.Add(two);
     _secondaryShot.Add(three);
     return(this);
 }
예제 #3
0
 public override void SetShots()
 {
     allshots    = new IShotType[6];
     allshots[0] = new FastShot(1, 0.5f);
     allshots[1] = new FastShot(3, 0.5f);
     allshots[2] = new FastShot(5, 0.5f);
     allshots[3] = new FastFocus(true, 0.9f, 0.2f);
     allshots[4] = new FastFocus(true, 0.9f, 0.15f);
     allshots[5] = new FastFocus(true, 0.9f, 0.1f);
     bomb        = new Seal();
 }
예제 #4
0
 public override void SetShots()
 {
     allshots    = new IShotType[6];
     allshots[0] = new HomingShot(2, 30, 1.3f);
     allshots[1] = new HomingShot(4, 30, 1.3f);
     allshots[2] = new HomingShot(6, 15, 1.3f);
     allshots[3] = new HomingFocus(2, 5, 1.3f);
     allshots[4] = new HomingFocus(4, 5, 1.3f);
     allshots[5] = new HomingFocus(6, 5, 1.3f);
     bomb        = new Seal();
 }
예제 #5
0
 public override void SetShots()
 {
     allshots    = new IShotType[6];
     allshots[0] = new LaserShot(2, 2.5f, 2, 1.3f, 0.6f);
     allshots[1] = new LaserShot(2, 2.3f, 4, 1.7f, 0.6f);
     allshots[2] = new LaserShot(2, 2.1f, 6, 2, 0.6f);
     allshots[3] = new LaserFocus(1, 2.3f, 8, 1.7f, 0);
     allshots[4] = new LaserFocus(1, 2.1f, 10, 2f, 0);
     allshots[5] = new LaserFocus(1, 2f, 12, 1.95f, 0);
     bomb        = new Magicannon();
 }
예제 #6
0
    public override void SetShots()
    {
        allshots = new IShotType[6];

        allshots[0] = new PowerShot(0.2f, 0.5f);
        allshots[1] = new PowerShot(0.2f, 0.35f);
        allshots[2] = new PowerShot(0.2f, 0.2f);
        allshots[3] = new PowerFocus(0.2f, 0.3f);
        allshots[4] = new PowerFocus(0.2f, 0.25f);
        allshots[5] = new PowerFocus(0.2f, 0.2f);
        bomb        = new Magicannon();
    }
예제 #7
0
 public Model ShotTypeSetter(IShotType first, IShotType second, IShotType third)
 {
     if (allMainShots == null)
     {
         allMainShots = new List <IShotType>();
     }
     else
     {
         allMainShots.Clear();
     }
     allMainShots.Add(first.SetModel(this));
     allMainShots.Add(second.SetModel(this));
     allMainShots.Add(third.SetModel(this));
     shotType = first;
     return(this);
 }
예제 #8
0
 void PowerChanger(IShotType mainShot, IShotType secondShot, IShotType focusShot)
 {
     _h.shotType          = mainShot;
     _h.secondaryShotType = secondShot;
     _h.focusShotType     = focusShot;
 }
예제 #9
0
 public WeaponObject(WeaponData _data, int _ammoInClip, IShotType _shotType)
 {
     ShotType   = _shotType;
     Data       = _data;
     AmmoInClip = _ammoInClip;
 }