Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using Jypeli; |
---|
6 | |
---|
7 | public class Loner : PhysicsObject |
---|
8 | { |
---|
9 | public DoubleMeter Health { get; private set; } |
---|
10 | |
---|
11 | //FollowerBrain AttackBrain { get; set; } |
---|
12 | |
---|
13 | public Loner(double width, double height, double hp, PhysicsObject target) |
---|
14 | :base(width, height) |
---|
15 | { |
---|
16 | this.Health = new DoubleMeter(hp, 0, hp); |
---|
17 | this.Health.LowerLimit += Kuoli; |
---|
18 | this.Health.LowerLimit += this.Destroy; |
---|
19 | this.Mass = 100; |
---|
20 | |
---|
21 | //this.AttackBrain = new FollowerBrain(target); |
---|
22 | //this.Brain = AttackBrain; |
---|
23 | } |
---|
24 | |
---|
25 | public void Damagea(double amount) |
---|
26 | { |
---|
27 | this.Health.Value -= amount; |
---|
28 | } |
---|
29 | |
---|
30 | private void Kuoli() |
---|
31 | { |
---|
32 | |
---|
33 | } |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.