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 TileRoom.RoomLink GetDoor(TileRoom room_0) { return (TileRoom.RoomLink)CollectionUtils.Get(this.connected, room_0); }
public RoomLink(TileRoom room_0, int x_1, int y_2) { this.x = x_1; this.y = y_2; this.room = room_0; }
public int GetDoorX(TileRoom other) { TileRoom.RoomLink record = (TileRoom.RoomLink)CollectionUtils.Get(this.connected, other); return(record.x); }
public TileRoom.RoomLink GetDoor(TileRoom r) { return((TileRoom.RoomLink)CollectionUtils.Get(this.connected, r)); }