Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public int GetDoorX(TileRoom other)
 {
     TileRoom.RoomLink record = (TileRoom.RoomLink)CollectionUtils.Get(this.connected, other);
     return record.x;
 }
Exemple #4
0
 public TileRoom.RoomLink GetDoor(TileRoom room_0)
 {
     return (TileRoom.RoomLink)CollectionUtils.Get(this.connected, room_0);
 }
Exemple #5
0
 public RoomLink(TileRoom room_0, int x_1, int y_2)
 {
     this.x = x_1;
     this.y = y_2;
     this.room = room_0;
 }
Exemple #6
0
 public int GetDoorX(TileRoom other)
 {
     TileRoom.RoomLink record = (TileRoom.RoomLink)CollectionUtils.Get(this.connected, other);
     return(record.x);
 }
Exemple #7
0
 public TileRoom.RoomLink GetDoor(TileRoom r)
 {
     return((TileRoom.RoomLink)CollectionUtils.Get(this.connected, r));
 }
Exemple #8
0
 public RoomLink(TileRoom room_0, int x_1, int y_2)
 {
     this.x    = x_1;
     this.y    = y_2;
     this.room = room_0;
 }