All pastes #204339 Raw Edit

Stuff

public java v1 · immutable
#204339 ·published 2006-10-15 21:42 UTC
rendered paste body
package rogueModel;import rogueView.*;public class Hallway {	private Room r1;	private Room r2;	private DungeonView.Direction d1;	private DungeonView.Direction d2;	public Hallway(Room r1, DungeonView.Direction d1, Room r2, DungeonView.Direction d2) {		this.r1=r1;		this.r2=r2;		this.d1=d1;		this.d2=d2;	}	public Hallway(Room r, Room s, DungeonView.Direction d){//this constructor is not used ever		System.out.println ("error: not yet implemented");	}		public boolean containsRoom(Room r, DungeonView.Direction d){		if((r==r1)&&(d1.equals(d))		    return true;		if((r==r2)&&(d2.equals(d))                return true;		return false;	}}