java.lang.Object
test.Tile.Bag
- Enclosing class:
Tile
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Tile.BaggetBag()The getBag function is a static function that returns the Bag object.Tile[]int[]The getQuantities function returns a copy of the amount array.getRand()The getRand function returns a random tile from the bag.getTile(char letter) voidintsize()
-
Field Details
-
b
-
-
Method Details
-
getLetters
-
getRand
The getRand function returns a random tile from the bag.- Returns:
- A random tile from the bag
-
getTile
-
put
-
size
public int size() -
getBag
The getBag function is a static function that returns the Bag object.- Returns:
- A reference to the object of type bag
-
getQuantities
public int[] getQuantities()The getQuantities function returns a copy of the amount array.- Returns:
- A clone of the amount array
-