source: esimerkit/2015k/live/live13/PelottavaPeli/PelottavaPeli/Vihu.cs @ 1392

Revision 1087, 518 bytes checked in by anlakane, 2 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6
7public class Vihu : PhysicsObject
8{
9    private IntMeter hp;
10
11    public IntMeter HP
12    {
13        get { return hp; }
14        set { hp = value; }
15    }
16
17    public Vihu(double leveys, double korkeus, Shape muoto, int elamapisteet)
18        : base(leveys, korkeus, muoto)
19    {
20        this.hp = new IntMeter(elamapisteet, 0, elamapisteet);
21        this.hp.LowerLimit += this.Destroy;
22    }
23}
Note: See TracBrowser for help on using the repository browser.