package com.smokeyhotel.room;

import com.smokeyhotel.people.guest.Guest;

/**
 * Room Object base class.
 * @author SlickJava & InsaneAboutTNT
 */

public class Room {

	private int number;
	private boolean vacant;
	private double price;
	private Guest[] occupants;
	private long ID;
	private int maxNumberOfOccupants;
	
	/**
	 * Constructor:
	 * Parameter number is the roo
	 * @param number - the room number
	 * @param vacant - vacancy of the room
	 * @param roomState - state of the room, eg. DAMAGED, BEING_CLEANED, MADE
	 * @param price - price of the room
	 * @param occupants - array of Guest[] objects occupying the room
	 */

	public Room(int roomNumber, int maxNumberOfOccupants,boolean vacant,  double price, Guest[] occupants, long ID)
	{
		this.number = roomNumber;
		this.vacant = vacant;
		this.price = price;
		this.occupants = occupants;
		this.ID = ID;
		this.maxNumberOfOccupants = maxNumberOfOccupants;
	}
	
	public int getMaxNumberOfOccupants() {
		return maxNumberOfOccupants;
	}

	public long getID() {
		return ID;
	}

	public void setID(long iD) {
		ID = iD;
	}

	public int getNumber() {
		return number;
	}
	
	public Guest[] getOccupants() {
		return occupants;
	}
	
	public void setOccupants(Guest[] guest) {
		this.occupants = guest;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public boolean isVacant() {
		return vacant;
	}

	public void setVacant(boolean vacant) {
		this.vacant = vacant;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
	

}

@@ -279,27 +279,8 @@
 s;%0D%0A
-%09private long ID;%0D%0A
 %09pri
@@ -314,16 +314,18 @@
 ts;%0D%0A%09%0D%0A
+%0D%0A
 %09/**%0D%0A%09 
@@ -341,74 +341,26 @@
 ctor
-:%0D%0A%09 * Parameter number is the roo%0D%0A%09 * @param number - the
+%0D%0A%09 * @param
  room
- n
+N
 umbe
@@ -383,220 +383,89 @@
 cant
- - vacancy of the room%0D%0A%09 * @param roomState - state of the room, eg. DAMAGED, BEING_CLEANED, MADE%0D%0A%09 * @param price - price of the room%0D%0A%09 * @param occupants - array of Guest%5B%5D objects occupying the room
+%0D%0A%09 * @param price%0D%0A%09 * @param occupants%0D%0A%09 * @param maxNumberOfOccupants
 %0D%0A%09 */%0D%0A
 %0D%0A%09p
@@ -460,18 +460,16 @@
 %0D%0A%09 */%0D%0A
-%0D%0A
 %09public 
@@ -493,33 +493,8 @@
 er, 
-int maxNumberOfOccupants,
 bool
@@ -504,17 +504,16 @@
  vacant,
- 
  double 
@@ -542,15 +542,32 @@
 ts, 
-long ID
+int maxNumberOfOccupants
 )%0D%0A%09
@@ -681,25 +681,8 @@
 s;%0D%0A
-%09%09this.ID = ID;%0D%0A
 %09%09th
@@ -820,101 +820,8 @@
 %0D%0A%0D%0A
-%09public long getID() %7B%0D%0A%09%09return ID;%0D%0A%09%7D%0D%0A%0D%0A%09public void setID(long iD) %7B%0D%0A%09%09ID = iD;%0D%0A%09%7D%0D%0A%0D%0A
 %09pub

Edit Room.java