Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bullet
- {
- public BulletType { get; set; }
- }
- public class SingleBullet : Bullet
- {
- }
- public class LaserBullet : Bullet
- {
- }
- public class SpreadBullet : Bullet
- {
- }
- public struct BulletPattern
- {
- Bullet bullet;
- public BulletPattern (Bullet _bullet)
- {
- bullet = _bullet;
- }
- //Accesors
- public BulletType Type
- {
- get
- {
- return bullet.Type;
- }
- }
- public Bullet Bullet
- {
- get
- {
- return bullet;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement