//Name: David Yang, Sean McMillan, Dominic Golab
//File: Bank.h
//For: CSE 30331: Scrabble Gmae
//12/6/09
/*Description: This file contains the functionality of the bank class.
The bank class holds the tiles for an individual player. It has an array of tiles that it uses as its bank. It also stores the score which it can add up and save.*/
#ifndef BANK_H
#define BANK_H
#include "Tile.h"
#include "Bag.h"
#include<ncurses.h>


class Bank{
 public:
  Bank();//constructor
  void draw(Bag &);//draws tiles from the bag until the bank is full
  bool place(int,int,int,int,string);//Determines if it has all the letters necessary to place word on the board
  void exchange(Bag &, string);//exchanges a string of letters with the bag
  void displayBank();//displays the bank
  void addScore(int);//adds the int to the score
  int Score();//returns the score
  bool empty();//returns if the bank is empty


 private:
  Tile letters[7];//what stores the tiles of the bank
  int score;//holds the score
  WINDOW *bank;//used for ncurses to display the bank
};


#endif
