コード例 #1
0
ファイル: BoardCreator.cs プロジェクト: lumley/EscapeTheMaze
 public Room(IntRange widthRange, IntRange heightRange)
 {
     this.size = new IntPair(widthRange.Random, heightRange.Random);
 }
コード例 #2
0
ファイル: BoardCreator.cs プロジェクト: lumley/EscapeTheMaze
 public Corridor(IntRange lengthRange, Room entranceRoom, Room exitRoom, Direction direction)
 {
     this.length = lengthRange.Random;
     this.entranceRoom = entranceRoom;
     this.exitRoom = exitRoom;
     this.direction = direction;
 }