Changeset 12159 for code/branches/wagnis_HS18/src/modules/wagnis
- Timestamp:
- Dec 5, 2018, 1:24:26 PM (6 years ago)
- Location:
- code/branches/wagnis_HS18/src/modules/wagnis
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUD.cc
r12136 r12159 21 21 * 22 22 * Author: 23 * Felix Schulthess 24 * Co-authors: 25 * Reto Grieder 26 * Oliver Scheuss 27 * Matthias Spalinger 28 * 23 * Roman Kunz 29 24 */ 30 25 -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUD.h
r12136 r12159 21 21 * 22 22 * Author: 23 * Felix Schulthess 24 * Co-authors: 25 * Reto Grieder 26 * Matthias Spalinger 23 * Roman Kunz 24 27 25 * 28 26 */ -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUDinfo.cc
r12158 r12159 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Roman Kunz 24 24 * 25 25 */ … … 50 50 findWagnis(); 51 51 } 52 enum GameStage { NOT_READY, CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE }; 52 switch(wagnisgame->active_player){ 53 case 1: setColour( colour({255,0,0}, 100.0f) ); 54 break; 55 case 2: setColour( colour({0,255,0}, 100.0f) ); 56 break; 57 case 3: setColour( colour({255,255,0}, 100.0f) ); 58 break; 59 case 4: setColour( colour({0,0,255}, 100.0f) ); 60 break; 61 case 5: setColour( colour({255,0,255}, 100.0f) ); 62 break; 63 case 6: setColour( colour({128,128,0}, 40.0f) ); 64 break; 65 case 7: setColour( colour({0,255,255}, 100.0f) ); 66 break; 67 case 8: setColour( colour({153,255,204}, 100.0f) ); 68 break; 69 case 9: setColour( colour({102,51,0}, 100.0f) ); 70 break; 71 } 72 53 73 std::stringstream ss; 54 74 switch(wagnisgame->gameStage){ -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUDinfo.h
r12157 r12159 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Roman Kunz 24 24 * 25 25 */ -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.cc
r12150 r12159 73 73 74 74 } 75 //highlight a province 76 void WagnisProvince::highlight(){ 77 this->setRadarObjectColour( colour({255,255,255}, 100.0f) ); 78 } 79 //dehighlight a province 80 void WagnisProvince::dehighlight(){ 81 this->setOwner_ID( this->getOwner_ID() ); 82 } 75 83 //set troops 76 84 void WagnisProvince::setTroops(int troops){ -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h
r12136 r12159 32 32 void setID(int); 33 33 void setContinent(int); 34 void highlight(); 35 void dehighlight(); 34 36 35 37 int getOwner_ID() const;
Note: See TracChangeset
for help on using the changeset viewer.