Changeset 4406 for 2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Kuutio.cs
- Timestamp:
- 2013-07-03 14:45:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Kuutio.cs
r4390 r4406 10 10 { 11 11 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) 13 17 : base(100, 100) 14 18 { … … 17 21 18 22 19 Color = vari; 23 this.health = health; 24 Color = healthvarit[health - 1]; 20 25 X = indexX * 100 +50; 21 26 Y = (indexY + 2) * 100 + 50;
Note: See TracChangeset
for help on using the changeset viewer.