//----------------------------------------------------------- public void MixTheReps(string word, int mixCount, bool preference) { this.mixCount = mixCount; this.preference = preference; z.ChangeState(2); if (mixCount == 1 && !preference) { //outputs as only 'x' Console.WriteLine("X: "); x.Ping(word); } else if (mixCount == 1 && preference) { // outputs as only 'z' Console.WriteLine("Z: "); z.Ping(word); } else if (mixCount == 2 && !preference) { // outputs as 'x'. then outputs as 'z' Console.WriteLine("X then Z: "); x.Ping(word); z.Ping(word); } else if (mixCount == 2 && preference) { // outptus as 'z'. then outputs as 'x' Console.WriteLine("Z then X: "); z.Ping(word); x.Ping(word); } }
//----------------------------------------------------------- public void Adder(ref blurtReps obj, string passedString) { cohorts[repNum] = obj; obj.Ping(passedString); repNum++; }