Advertisement
Guest User

Untitled

a guest
May 17th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement