Esempio n. 1
0
 public int GetMoveHormoneDensity(Colony colony)
 {
     return(_colonyCells[colony].MoveHormoneDensity);
 }
Esempio n. 2
0
 public void AddMoveHormone(Colony colony, int density)
 {
     _colonyCells[colony].MoveHormoneDensity += density;
 }
Esempio n. 3
0
 public int GetCreatureDensity(Colony colony)
 {
     return(_colonyCells[colony].CreatureDensity);
 }
Esempio n. 4
0
 public void AddColony(Colony newColony)
 {
     _colonyCells.Add(newColony, new ColonyCell(newColony));
 }
Esempio n. 5
0
 public void AddCreatures(Colony colony, int density)
 {
     _colonyCells[colony].CreatureDensity += density;
 }
Esempio n. 6
0
 public ColonyCell(Colony colony)
 {
     Colony = colony;
 }
Esempio n. 7
0
 private double ComputeCreatureDensityReboundLoss(Colony colony)
 {
     return(GetCreatureDensity(colony) * colony.CreatureReboundRatio);
 }
Esempio n. 8
0
 private double ComputeCreatureDensityMultiplicationGain(Colony colony)
 {
     return(GetCreatureDensity(colony) * colony.CreatureMultiplicationRate);
 }
Esempio n. 9
0
 public void AddMoveHormone(Colony colony, Coord position, int density)
 {
     _currentCells[position.Row, position.Col].AddMoveHormone(colony, density);
 }
Esempio n. 10
0
 public void AddCreatures(Colony colony, Coord position, int density)
 {
     _currentCells[position.Row, position.Col].AddCreatures(colony, density);
 }