Advertisement
Guest User

player.h - scrabble

a guest
May 10th, 2010
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #ifndef PLAYER_H_
  2. #define PLAYER_H_
  3.  
  4. #include "Score.h"
  5. #include "Deck.h"
  6. #include <string>
  7.  
  8. using std::string;
  9.  
  10. class Player
  11. {
  12.  
  13. public:
  14.     Player();
  15.     Player(string name);
  16.     virtual ~Player();
  17.     void addScore(int wordScore);
  18.     void fillHand(Deck & deck);
  19.     string getHand();
  20.     string playerGetName();
  21.     Score getScore();
  22.     int getScoreValue();
  23.     bool isWordPossible(string word);
  24.     void removePiecesFromHand(string pieces);
  25.     void playerSetName(string name);
  26.  
  27. private:
  28.     string _hand;
  29.     Score _score;
  30.  
  31. };
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement