Changeset 12158 for code/branches/wagnis_HS18
- Timestamp:
- Dec 5, 2018, 12:49:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUDinfo.cc
r12157 r12158 50 50 findWagnis(); 51 51 } 52 enum GameStage { NOT_READY, CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE }; 52 53 std::stringstream ss; 53 54 switch(wagnisgame->gameStage){ 54 55 case CHOOSE_PROVINCE_STAGE: { 55 ss<<"Player"<<wagnisgame->active_player; 56 ss<<"Player "<<wagnisgame->active_player<<" choose a province to occupy"; 57 setCaption( ss.str() ); 58 break; 59 } 60 case REINFORCEMENT_STAGE: { 61 ss<<"Player "<<wagnisgame->active_player<<" place your reinforcements"; 62 setCaption( ss.str() ); 63 break; 64 } 65 case ATTACK_STAGE: { 66 ss<<"Player "<<wagnisgame->active_player<<" you can attack now"; 67 setCaption( ss.str() ); 68 break; 69 } 70 case MOVE_STAGE: { 71 ss<<"Player "<<wagnisgame->active_player<<" you can reorganize your troops now"; 72 setCaption( ss.str() ); 73 break; 74 } 75 case NOT_READY: { 76 ss<<""; 56 77 setCaption( ss.str() ); 57 78 break;
Note: See TracChangeset
for help on using the changeset viewer.