Ejemplo n.º 1
0
		/// <summary>
		/// Sets the different attributes
		/// </summary>
		/// <param name="type">The type of tile</param>
		/// <param name="hasCrump">Whether the tile has a crump</param>
		/// <param name="hasPowerPill">Whether the tile has a power pill</param>
		public GridTile(ETileTypes type, bool hasCrump, bool hasPowerPill, Point position) {
			Type = type;
			mHasCrumb = hasCrump;
			if (hasCrump) {
				Grid.NumCrumps++;
			}
			HasPowerPill = hasPowerPill;
			ToPoint = position;
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the different attributes
 /// </summary>
 /// <param name="type">The type of tile</param>
 /// <param name="hasCrump">Whether the tile has a crump</param>
 /// <param name="hasPowerPill">Whether the tile has a power pill</param>
 public GridTile(ETileTypes type, bool hasCrump, bool hasPowerPill, Point position)
 {
     Type      = type;
     mHasCrumb = hasCrump;
     if (hasCrump)
     {
         Grid.NumCrumps++;
     }
     HasPowerPill = hasPowerPill;
     ToPoint      = position;
 }