public STreeNode(STreeNode a) { id = a.id; name = a.name; state = a.state; Type = a.Type; children = a.children; }
public VirusCarrierEnhanced(List <string> gridMap) { InfectionMap = new Dictionary <int, Dictionary <int, ENodeStates> >(); for (int y = 0; y < gridMap.Count; y++) { InfectionMap.Add(y, new Dictionary <int, ENodeStates>()); for (int x = 0; x < gridMap[y].Length; x++) { ENodeStates val = gridMap[y][x] == '#' ? ENodeStates.eInfected : ENodeStates.eClean; InfectionMap[y].Add(x, val); } } direction = EDirections.eUp; currentYPos = InfectionMap.Count / 2; currentXPos = InfectionMap[0].Count / 2; InfectionBursts = 0; }