public void Connect(TileRoom other, int x_0, int y_1) { TileRoom.RoomLink record = new TileRoom.RoomLink(other, x_0, y_1); if (CollectionUtils.Get(this.connected, other) == null) { CollectionUtils.Put(this.connected, other, record); CollectionUtils.Add(this.connectedRooms, other); other.Connect(this, x_0, y_1); } }
public int GetDoorX(TileRoom other) { TileRoom.RoomLink record = (TileRoom.RoomLink)CollectionUtils.Get(this.connected, other); return(record.x); }
public override bool Equals(object other) { TileRoom.RoomLink o = (TileRoom.RoomLink)other; return((o.room == this.room) && (this.x == o.x) && (this.y == o.y)); }