Ignore:
Timestamp:
2013-07-03 14:45:40 (10 years ago)
Author:
akansaja
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Kuutio.cs

    r4390 r4406  
    1010    { 
    1111 
    12         public Kuutio(int indexY, int indexX,  Color vari) 
     12      internal int health; 
     13 
     14      public static Color[] healthvarit = { Color.Green, Color.Red, Color.Purple, Color.Yellow, Color.Brown }; 
     15 
     16        public Kuutio(int indexY, int indexX, int health) 
    1317            : base(100, 100) 
    1418        { 
     
    1721 
    1822 
    19             Color = vari; 
     23            this.health = health; 
     24            Color = healthvarit[health - 1]; 
    2025            X = indexX * 100 +50; 
    2126            Y = (indexY + 2) * 100 + 50; 
Note: See TracChangeset for help on using the changeset viewer.