package nl.tudelft.bw4t.server.model.zone;
import java.awt.Color;
import nl.tudelft.bw4t.map.RenderOptions;
import nl.tudelft.bw4t.server.model.BW4TServerMap;
/**
* Abstract definition of a room in the environment.
*/
public abstract class Room extends Zone {
/**
* Colour to be used
*/
private final Color color;
/**
* Rendering options
*/
private RenderOptions renderOptions;
/**
* Creates a new room that has the given color.
*
* @param roomzone
* The zone in which the room should be placed.
* @param color
* The color of the room, used for visualization.
* @param space
* The space in which the room should be placed.
* @param grid
* The zone in which the room should be placed.
* @param context
* The context in which the room should be placed.
*/
public Room(Color color, nl.tudelft.bw4t.map.Zone roomzone, BW4TServerMap context) {
super(roomzone, context);
this.color = color;
this.renderOptions = roomzone.getRenderOptions();
}
public Color getColor() {
return color;
}
public RenderOptions getRenderOptions() {
return renderOptions;
}
}