Esempio n. 1
0
        private Atom(int x, int y, AtomAtrributes attributes)
        {
            this.id         = Guid.NewGuid();
            this.x          = x;
            this.y          = y;
            this.Attributes = attributes;
            this.bonds      = new Dictionary <Direction, Bond>();

            foreach (Direction direction in (Direction[])Enum.GetValues(typeof(Direction)))
            {
                bonds[direction] = null;
            }
        }
Esempio n. 2
0
 private Atom(int x, int y, AtomAtrributes attributes, Dictionary <Direction, Bond> bonds) :
     this(x, y, attributes)
 {
     this.bonds = bonds;
 }