Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: C#  |  size: 0.46 KB  |  hits: 61  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class Bullet
  2. {
  3.         public BulletType { get; set; }
  4. }
  5.  
  6. public class SingleBullet : Bullet
  7. {
  8. }
  9.  
  10. public class LaserBullet : Bullet
  11. {
  12. }
  13.  
  14. public class SpreadBullet : Bullet
  15. {
  16. }
  17.  
  18. public struct BulletPattern
  19. {
  20.         Bullet bullet;
  21.        
  22.         public BulletPattern (Bullet _bullet)
  23.         {
  24.                 bullet = _bullet;
  25.         }
  26.        
  27.         //Accesors
  28.         public BulletType Type
  29.         {
  30.                 get
  31.                 {
  32.                         return bullet.Type;
  33.                 }
  34.         }
  35.        
  36.         public Bullet Bullet
  37.         {
  38.                 get
  39.                 {
  40.                         return bullet;
  41.                 }
  42.         }
  43. }