source: 2015/24/LeeviK/AS Bandit Experience/AS Bandit Experience/AS Bandit Experience/Loner.cs @ 5999

Revision 5999, 780 bytes checked in by lesejuku, 6 years ago (diff)
RevLine 
[5982]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6
7public class Loner : PhysicsObject
8{
[5999]9    public DoubleMeter Health { get; private set; }
[5982]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;
[5999]19        this.Mass = 100;
[5982]20
21        //this.AttackBrain = new FollowerBrain(target);
22        //this.Brain = AttackBrain;
23    }
24
[5999]25    public void Damagea(double amount)
26    {
27        this.Health.Value -= amount;
28    }
29
[5982]30    private void Kuoli()
31    {
32
33    }
34}
Note: See TracBrowser for help on using the repository browser.