Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2014, 4:39:31 PM (10 years ago)
Author:
richtero
Message:

started programming game logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4DgameCenterpoint.h

    r10101 r10115  
    105105                { return Vector3(this->width_, this->height_, this->length_); }
    106106
     107            /**
     108                    @brief checks if the move is valid
     109                    @param the position where to put the stone plus the player who makes the move
     110            */
     111            bool isValidMove(const Vector4 move,const int playerColor);
     112
     113            /**
     114               @brief makes a move on the logic playboard
     115                   @param the position where to put the stone plus the player who makes the move
     116             */
     117            void makeMove(const Vector4 move, const int player);
     118
     119            /**
     120                @brief searches the board if somebody has won
     121                                @return the winner if somebody has won or mini4DgamePlayerColor::none if nobody has won so far
     122             */
     123            mini4DgamePlayerColor::color Mini4DgameCenterpoint::getWinner()
    107124
    108125        private:
     
    115132            float height_; //!< The width of the playing field.
    116133            float length_; //!< The length of the playing field.
     134            mini4DgamePlayerColor::color board[4][4][4][4]; //!< The logical board where the game takes place. board[row][column][height][number]
    117135    };
    118136}
Note: See TracChangeset for help on using the changeset viewer.