-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom.java
More file actions
37 lines (32 loc) · 917 Bytes
/
Room.java
File metadata and controls
37 lines (32 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
*
*/
/**
* @author ong0
*
*/
package com.purdue.LawsonNavigator;
public class Room {
private int x_position;
private int y_position;
private int floor;
private String name;
private String type;
public Room(int x_position, int y_position, int floor, String name, String type) {
this.x_position = x_position;
this.y_position = y_position;
this.floor = floor;
this.name = name;
this.type = type;
}
public int getX() { return x_position; }
public int getY() { return y_position; }
public int getFloor() { return floor; }
public String getName() { return name; }
public String getType() { return type; }
public void setRoomType(String type) { this.type = type; }
public void setX(int x) { this.x_position = x; }
public void setY(int y) { this.y_position = y; }
public void setName(String name) { this.name = name; }
public void setFloor(int floor) { this.floor = floor; }
}