Galaxy Anpassen
This commit is contained in:
@@ -9,6 +9,8 @@ public class PlayerValues
|
||||
public int power { get; set; }
|
||||
public int food { get; set; }
|
||||
public int industrialCapacity { get; set; }
|
||||
public int population { get; set; }
|
||||
public int actualFood { get; set; }
|
||||
|
||||
// Default constructor
|
||||
public PlayerValues()
|
||||
@@ -20,10 +22,13 @@ public class PlayerValues
|
||||
this.power = 0;
|
||||
this.food = 0;
|
||||
this.industrialCapacity = 0;
|
||||
this.population = 0;
|
||||
this.actualFood = 0;
|
||||
|
||||
}
|
||||
|
||||
// Constructor to init values
|
||||
public PlayerValues(int id, int newMoney, int newScience, int newPower, int newFood, int newIC)
|
||||
public PlayerValues(int id, int newMoney, int newScience, int newPower, int newFood, int newIC, int newPopulation, int newActualFood)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
@@ -32,5 +37,7 @@ public class PlayerValues
|
||||
this.power = newPower;
|
||||
this.food = newFood;
|
||||
this.industrialCapacity = newIC;
|
||||
this.population = newPopulation;
|
||||
this.actualFood = newActualFood;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user