Beispiel #1
0
		public Place(Coord refpos) {
			refPos = refpos;
			chairs = new List<Chair>();
		}
Beispiel #2
0
		public bool NearTable(Coord pos) {
			foreach (var i in places)
				if (Math.Abs(i.refPos.x - pos.x) <= 3 && Math.Abs(i.refPos.y - pos.y) <= 3)
					return true;
			return false;
		}
Beispiel #3
0
		public Chair(Coord refpos) {
			refPos = refpos;
		}
Beispiel #4
0
		public Hall(Coord _leftUpCorner, Coord _rightDownCorner) {
			leftUpCorner = _leftUpCorner;
			rightDownCorner = _rightDownCorner;
			places = new List<Place>();
		}
Beispiel #5
0
		public ManyPlaces(Coord refpos) : base(refpos) {
			tables = new List<Coord>();
		}
Beispiel #6
0
		public void AddTable(Coord refPos) => tables.Add(refPos);