Ignore:
Timestamp:
2013-07-03 11:45:44 (10 years ago)
Author:
teematma
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/TeemuM/Game/Game/Game/Enemies.cs

    r4380 r4387  
    1111public class Zombie1 : PhysicsObject 
    1212{ 
     13 
     14    IntMeter zombieHealth1; 
     15 
    1316    private static Image[] Images = { Game.LoadImage("Zombie1"), Game.LoadImage("Zombie2"), Game.LoadImage("Zombie3"), Game.LoadImage("Zombie4") }; 
    14  
    15     public Zombie1(double widht, double height, double x, double y) : base(widht, height) 
     17     
     18    public Zombie1(double widht, double height, double x, double y, int healt) : base(widht, height) 
    1619    { 
    1720        this.X = x; 
     
    2023        RandomTexture(); 
    2124        CreateBrain(); 
     25        createZHealth(healt); 
    2226 
    2327        this.IsUpdated = true; 
     28    } 
     29 
     30    void createZHealth(int health) 
     31    { 
     32        zombieHealth1 = new IntMeter(health, 0, health + 10); 
     33 
    2434    } 
    2535 
     
    2838        this.Image = Images[RandomGen.NextInt(Images.Length)]; 
    2939    } 
     40 
    3041 
    3142    private void CreateBrain() 
Note: See TracChangeset for help on using the changeset viewer.