source: 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenCharacter.cs @ 2206

Revision 2206, 587 bytes checked in by teeevasa, 8 years ago (diff)

Talletus.

Line 
1using System;
2using Jypeli;
3using Jypeli.Assets;
4using Jypeli.Controls;
5using Jypeli.Effects;
6using Jypeli.Widgets;
7
8public class GenCharacter : PlatformCharacter
9{
10    protected int hitPoints
11    {
12        get { return hitPoints; }
13        set { hitPoints = value; }
14    }
15
16    protected int maxHP
17    {
18        get { return maxHP; }
19    }
20
21    public GenCharacter(double width, double height, Shape shape)
22        : base(width, height, shape)
23    {
24
25    }
26
27    private void reduceHitPointsBy(int reduction)
28    {
29        hitPoints -= reduction;
30    }
31}
Note: See TracBrowser for help on using the repository browser.