public void takeVisitors() throws InterruptedException { if (permitPeople() == true) // ���� ���� �������� { int count = visitors.countVisitorsToMuseum; while (visitors.getCountVisitorsToMuseum() != 0) { people_in_museum++; visitors.countVisitorsToMuseum--; } System.out.println("Через EAST зашло - " + count + " людей"); System.out.println("Всего в музеей людей - " + people_in_museum); } }
@Override public String toString() { return Visitors.readable(this); }
public void sell(Visitors v) { System.out.println("Sell soverign to " + v.getName()); }