Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Jypeli; |
---|
4 | using Jypeli.Assets; |
---|
5 | using Jypeli.Controls; |
---|
6 | using Jypeli.Effects; |
---|
7 | using Jypeli.Widgets; |
---|
8 | |
---|
9 | class Hyvis : PhysicsObject |
---|
10 | { |
---|
11 | private IntMeter elamaLaskuri = new IntMeter(3, 0, 3); |
---|
12 | public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } |
---|
13 | private AssaultRifle ase = new AssaultRifle(10, 10); |
---|
14 | public AssaultRifle Ase |
---|
15 | { |
---|
16 | get |
---|
17 | { |
---|
18 | return ase; |
---|
19 | } |
---|
20 | set |
---|
21 | { |
---|
22 | ase = value; |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | public Hyvis(double leveys, double korkeus) |
---|
27 | : base(leveys, korkeus) |
---|
28 | { |
---|
29 | elamaLaskuri.LowerLimit += delegate |
---|
30 | { |
---|
31 | this.Ase.Destroy(); |
---|
32 | this.Destroy(); |
---|
33 | }; |
---|
34 | } |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.