예제 #1
0
 public static void DrawFire(Point pos, Point targ, TransFire fire)
 {
     if (fire.FireType == "LaserGreen")
     {
         LargeLaser(pos, targ, Color.GreenYellow, 1);
     }
     if (fire.FireType == "Automatic")
     {
         Automatic(new Point(pos.X, pos.Y), targ, Color.Yellow);
         Explosions.AddSpecial(fire.RodEffect, pos.X, pos.Y);
     }
 }
예제 #2
0
 public static TransFire[] GetTransFire()
 {
     List<TransFire> temp = ConstrGroup.GetTransFire();
     TransFire[] data = new TransFire[temp.Count];
     for (int i = 0; i < data.Length; i++)
         data[i] = temp[i];
     return data;
 }