Beispiel #1
0
 public override void WriteNodes(Writer writer)
 {
     for (int i = 0; i < Prisoners.Count; i++)
     {
         GangMember member = Prisoners[i];
         member.Label = "[G " + i + "]"; // used to be i
         writer.WriteNode(member);
     }
 }
Beispiel #2
0
 public override Node CreateNode(string label)
 {
     if (Parser.IsId(label))
     {
         var member = new GangMember(label);
         Prisoners.Add(member);
         return(member);
     }
     else
     {
         return(base.CreateNode(label));
     }
 }