예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #3
0
 public int GetDoorX(TileRoom other)
 {
     TileRoom.RoomLink record = (TileRoom.RoomLink)CollectionUtils.Get(this.connected, other);
     return(record.x);
 }
예제 #4
0
 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));
 }