Beispiel #1
0
 //
 public Tile(Brush bgcolor, Brush bColor, int size, Gem [] gems)
 {
     backgroundColor = bgcolor;
     borderColor = bColor;
     this.size = size;
     this.gems = gems;
 }
Beispiel #2
0
 // Default Constructor
 public Tile()
 {
     // Can have up to 3 gems;
     gems = new Gem[3];
     backgroundColor = Brushes.Orange;
     borderColor = Brushes.Black;
     size = 5;
     Gem gem1 = new Gem("Ruby", Directory.GetCurrentDirectory() + @"\images\gem00.png", 1);
     gems[0] = gem1;
 }
Beispiel #3
0
 public void SetGems(Gem[] gems)
 {
     this.gems = gems;
 }