コード例 #1
0
ファイル: TileRoom.cs プロジェクト: hellogithubtesting/LGame
 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));
 }