package JoeWumpusMapAndPlayer;
/**
* Includes information about the room the player is in, including hazards, connections, wumpus, and warnings.
* hunter2008
* wUmpUshUnter08
*/
public class RoomInfo
{
public int roomNumber;
public boolean batsAreHere;
public boolean pitIsHere;
public boolean wumpusIsHere;
public boolean batWarning;
public boolean pitWarning;
public boolean wumpusWarning;
public int[] connectingRooms; //size = 6, clockwise from North 0+
public RoomInfo(int inputRoomNumber, boolean bats, boolean pit, boolean wumpus, boolean batWarn, boolean pitWarn, boolean wumpusWarn, int[] connections)
{
roomNumber = inputRoomNumber;
batsAreHere = bats;
pitIsHere = pit;
wumpusIsHere = wumpus;
batWarning = batWarn;
pitWarning = pitWarn;
wumpusWarning = wumpusWarn;
connectingRooms = connections;
}
/**
* @return if bats are in an adjacent room.
*/
public boolean batWarning()
{
return batWarning;
}
/**
* @return if a pit(s) is/are in an adjacent room.
*/
public boolean pitWarning()
{
return pitWarning;
}
/**
* @return if the wumpus is in an adjacent room
*/
public boolean wumpusWarning()
{
return wumpusWarning;
}
/**
* @return if bats are in this room
*/
public boolean batsPresent()
{
return batsAreHere;
}
/**
* @return if there is a pit in this room
*/
public boolean pitPresent()
{
return pitIsHere;
}
/**
* @return if the wumpus is in this room
*/
public boolean wumpusPresent()
{
return wumpusIsHere;
}
/**
* @return the room's number
*/
public int getRoomNumber()
{
return roomNumber;
}
/**
* @return in[] representing the connections of the room starting at north and going clockwise.
*/
public int[] getConnections()
{
return connectingRooms;
}
}