private void BuildBeads() { for (int i = 0; i < beadsCount; i++) { beads[i] = new Bead(this, i); } }
public MoveRequest(Bead sender, Double x) { this.sender = sender; this.x = x; this.accepted = false; this.processed = false; }
protected void SetLeftBead(Bead leftBead) { this.leftBead = leftBead; }
public void SetRightBead(Bead rightBead) { this.rightBead = rightBead; this.rightBead.SetLeftBead(this); }