View difference between Paste ID: W1n1wwwf and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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 | } |