- Timestamp:
- 30/01/08 14:40:23 (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
Makefile.am (modified) (1 diff)
-
src/ScoreDice.cpp (modified) (3 diffs)
-
src/ScoreDice.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.am
r135 r148 5 5 SUBDIRS = src 6 6 7 appicondir = $(data dir)/pixmaps7 appicondir = $(datarootdir)/pixmaps 8 8 dist_appicon_DATA = icons/openyahtzee.png 9 9 10 menudir = $(data dir)/applications10 menudir = $(datarootdir)/applications 11 11 dist_menu_DATA = openyahtzee.desktop 12 12 -
trunk/src/ScoreDice.cpp
r119 r148 46 46 * \param dice An array of 5 short ints containing the values of the dice. 47 47 */ 48 void ScoreDice::SetDice( short int dice[5])48 void ScoreDice::SetDice(const short int dice[5]) 49 49 { 50 50 for (int i=0; i<5; i++) … … 67 67 * \see MainFrame::YahtzeeJoker() 68 68 */ 69 void ScoreDice::SetYahtzeeJoker( bool is_yahtzee_joker)69 void ScoreDice::SetYahtzeeJoker(const bool is_yahtzee_joker) 70 70 { 71 71 m_yahtzee_joker = is_yahtzee_joker; … … 77 77 * \return the value of the dice. 0 if wrong input. 78 78 */ 79 short int ScoreDice::GetDice( short int number)79 short int ScoreDice::GetDice(const short int number) 80 80 { 81 81 if (number<=5 && number >=1) -
trunk/src/ScoreDice.h
r118 r148 19 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 20 ***************************************************************************/ 21 21 #ifndef SCORE_DICE_H 22 #define SCORE_DICE_H 22 23 23 24 class ScoreDice { … … 25 26 ScoreDice(); 26 27 ScoreDice(short int dice[5]); 27 void SetDice( short int dice[5]);28 void SetDice(const short int dice[5]); 28 29 void SetYahtzeeJoker(bool is_yahtzee_joker); 29 30 short int GetDice(short int number); … … 52 53 53 54 }; 55 56 #endif //SCORE_DICE_H
Note: See TracChangeset
for help on using the changeset viewer.
