protected virtual void OnPersonRemoved(Person person) { }
public void Select(Person person) { if (this.selection != null) this.selection.IsSelected = false; this.selection = person; if (this.selection != null) this.selection.IsSelected = true; }
protected void AddPerson(Person person) { if (this.CurrentPeopleInFlight - this.Remaining == 0) return; person.Level = this; this.CurrentPeopleInFlight++; this.peopleCanvas.Children.Add(person); this.waitingLine.Add(person); this.UpdateWaitingLine(); }
public void RemovePerson(Person person) { this.OnPersonRemoved(person); this.peopleCanvas.Children.Remove(person); this.CurrentPeopleInFlight--; this.Remaining--; if (this.CurrentPeopleInFlight == 0 && this.Remaining == 0) { // Level is finished! this.OnCompleted(); } }
public void RemoveFromLine(Person person) { Debug.Assert(this.waitingLine.Contains(person)); this.waitingLine.Remove(person); this.UpdateWaitingLine(); }
public void Deselect(Person person) { person.IsSelected = false; if (this.selection == person) this.selection = null; }
public void PersonLeft() { this.Person = null; }
public void PersonEntering(Person person) { this.Person = person; }