Changeset 55
- Timestamp:
- 17/01/07 18:08:53 (6 years ago)
- Location:
- trunk/OpenYahtzee
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
TODO (modified) (2 diffs)
-
openyahtzee.kdevelop.pcs (modified) (previous)
-
openyahtzee.kdevses (modified) (6 diffs)
-
src/MainFrame.cpp (modified) (5 diffs)
-
src/MainFrame.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/OpenYahtzee/ChangeLog
r51 r55 13 13 - Redesigned the Settings Dialog. 14 14 - The main window of the game is now unresizable (fixed size). 15 - Disabled the ability to undo the last move of the game (this allowed people 16 to re-enter their score to the high score table over and over again). 17 - Implemented the Yahtzee Joker scoring rules. 15 18 16 19 Open Yahtzee 1.6: -
trunk/OpenYahtzee/TODO
r51 r55 5 5 6 6 - Set a better icon for the windows installer 7 - Disable the ability to undo the last move of the game.8 7 - Add abilliy to adjust how many times (avreage) will the dice roll before they stop. 9 8 - Multiplayer mode. … … 15 14 - Make the dice roll a couple of times before they stop. 16 15 - Change the "reset high score" toggle button to a checkbox. 16 - Disable the ability to undo the last move of the game. 17 17 18 18 -
trunk/OpenYahtzee/openyahtzee.kdevses
r52 r55 7 7 </Doc0> 8 8 <Doc1 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/openyahtzee.cpp" > 9 <View0 line="55"Type="Source" />9 <View0 Type="Source" /> 10 10 </Doc1> 11 11 <Doc2 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/MainFrame.cpp" > 12 <View0 line=" 240" Type="Source" />12 <View0 line="695" Type="Source" /> 13 13 </Doc2> 14 14 <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/ObjectsID.h" > … … 16 16 </Doc3> 17 17 <Doc4 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/MainFrame.h" > 18 <View0 line=" 82" Type="Source" />18 <View0 line="69" Type="Source" /> 19 19 </Doc4> 20 20 <Doc5 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/DBwrapper.h" > 21 <View0 Type="Source" />21 <View0 line="0" Type="Source" /> 22 22 </Doc5> 23 23 <Doc6 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/HighScoreTableDB.cpp" > 24 <View0 Type="Source" />24 <View0 line="0" Type="Source" /> 25 25 </Doc6> 26 26 <Doc7 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/SettingsDialog.cpp" > … … 28 28 </Doc7> 29 29 <Doc8 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/SettingsDB.cpp" > 30 <View0 line="0"Type="Source" />30 <View0 Type="Source" /> 31 31 </Doc8> 32 32 <Doc9 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/HighScoreTableDB.h" > … … 34 34 </Doc9> 35 35 <Doc10 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/HighScoreDialog.cpp" > 36 <View0 line=" 0" Type="Source" />36 <View0 line="125" Type="Source" /> 37 37 </Doc10> 38 38 <Doc11 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/Icon.h" > … … 40 40 </Doc11> 41 41 <Doc12 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/SettingsDialog.h" > 42 <View0 line="54"Type="Source" />42 <View0 Type="Source" /> 43 43 </Doc12> 44 44 <Doc13 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/wxDynamicBitmap.cpp" > 45 <View0 line="0"Type="Source" />45 <View0 Type="Source" /> 46 46 </Doc13> 47 47 <Doc14 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/DBwrapper.cpp" > … … 49 49 </Doc14> 50 50 <Doc15 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/wxDynamicBitmap.h" > 51 <View0 line="42"Type="Source" />51 <View0 Type="Source" /> 52 52 </Doc15> 53 53 <Doc16 NumberOfViews="1" URL="file:///home/guy/workspace/OpenYahtzee/src/openyahtzee.rc" > -
trunk/OpenYahtzee/src/MainFrame.cpp
r53 r55 25 25 ***********************************************/ 26 26 27 //#define DEBUG27 #define DEBUG 28 28 29 29 #include <wx/wx.h> … … 567 567 if (dicehash[i] == 3) 568 568 three = true; 569 if ( two && three)569 if ((two && three) || YahtzeeJoker()) 570 570 ((wxTextCtrl*) FindWindow(ID_FULLHOUSETEXT))->SetValue(wxT("25")); 571 571 else … … 589 589 (dicehash[2]>=1 && dicehash[3]>=1 && dicehash[4]>=1 && dicehash[5]>=1)) 590 590 sequence = true; 591 if (sequence )591 if (sequence || YahtzeeJoker()) 592 592 ((wxTextCtrl*) FindWindow(ID_SMALLSEQUENCETEXT))->SetValue(wxT("30")); 593 593 else … … 610 610 (dicehash[1]==1 && dicehash[2]==1 && dicehash[3]==1 && dicehash[4]==1 && dicehash[5]==1)) 611 611 sequence = true; 612 if (sequence )612 if (sequence || YahtzeeJoker()) 613 613 ((wxTextCtrl*) FindWindow(ID_LARGESEQUENCETEXT))->SetValue(wxT("40")); 614 614 else … … 692 692 } 693 693 694 bool MainFrame::YahtzeeJoker() 695 { 696 if ((dice[0]==dice[1]) && (dice[1]==dice[2]) && (dice[1]==dice[3]) && (dice[1]==dice[4]) && !(FindWindow(ID_ACES+dice[0])->IsEnabled()) && !(FindWindow(ID_YAHTZEE)->IsEnabled())) { 697 return true; 698 } 699 return false; 700 } 701 694 702 void MainFrame::EndofGame() 695 703 { -
trunk/OpenYahtzee/src/MainFrame.h
r49 r55 68 68 void ResetRolls(); 69 69 void YahtzeeBonus(); 70 bool YahtzeeJoker(); 70 71 void EndofGame(); 71 72 void HighScoreHandler(int score);
Note: See TracChangeset
for help on using the changeset viewer.
