Ignore:
Timestamp:
2011-06-28 12:21:32 (8 years ago)
Author:
teeevasa
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenCharacter.cs

    r2205 r2206  
    88public class GenCharacter : PlatformCharacter 
    99{ 
     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 
    1021    public GenCharacter(double width, double height, Shape shape) 
    1122        : base(width, height, shape) 
     
    1324 
    1425    } 
     26 
     27    private void reduceHitPointsBy(int reduction) 
     28    { 
     29        hitPoints -= reduction; 
     30    } 
    1531} 
Note: See TracChangeset for help on using the changeset viewer.