예제 #1
0
 public ButtonTile(TrapTile trapTile)
 {
     this.Representation = 'B';
     this.IsAccessible   = true;
     this.TrapTile       = trapTile;
     this.color          = ConsoleColor.Cyan;
     this.TrapTile.color = this.color;
 }
예제 #2
0
 private void PlaceButtonTrapPairs(int pairs)
 {
     for (int i = 0; i < pairs; i++)
     {
         TrapTile trap = new TrapTile();
         PlaceTile(new ButtonTile(trap), typeof(RoomTile));
         PlaceTile(trap, typeof(RoomTile));
     }
 }