Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2015, 2:31:14 PM (8 years ago)
Author:
landauf
Message:

using strongly typed enum classes in various modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/mini4dgame/Mini4DgameBoard.h

    r10817 r10999  
    4242namespace orxonox
    4343{
     44    enum class Mini4DgamePlayerColor
     45    {
     46        none,
     47        red,
     48        blue,
     49        green
     50    };
    4451
    4552    struct Mini4DgamePosition
     
    5865        int winningHeight[4];
    5966        int winningNumber[4];
    60         int color_;
     67        Mini4DgamePlayerColor color_;
    6168    };
    6269
     
    8895            bool player_toggle_;
    8996            BlinkingBillboard* blinkingBillboards[4][4][4][4];
    90             int board[4][4][4][4]; //!< The logical board where the game takes place. board[row][column][height][number]
     97            Mini4DgamePlayerColor board[4][4][4][4]; //!< The logical board where the game takes place. board[row][column][height][number]
    9198    };
    9299}
Note: See TracChangeset for help on using the changeset viewer.