public WorkField(UnitCounts counts, int FieldDimension = 5) { if (FieldDimension > 10) { FieldDimension = 10; } _fieldDimension = FieldDimension; AddEmployeesToField(counts.WorkerCount, counts.BossCount, counts.BigBossCount); AddCustomerToField(counts.CustomerCount); AddWorkToField(counts.WorkCount); RandomizeMovableLocation(); AddSalaryAddition(); }
public Game(UnitCounts counts, int dimension = 5) { _field = new WorkField(counts, dimension); }