Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2014, 4:07:10 PM (11 years ago)
Author:
richtero
Message:

finished getWinner function which checks if somebody has won and started on the AI.

File:
1 edited

Legend:

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

    r10115 r10121  
    4141#include "worldentities/StaticEntity.h"
    4242#include "mini4Dgame/Mini4DgamePrereqs.h"
     43#include "mini4Dgame/Mini4Dgame.h"
    4344
    4445namespace orxonox
     
    109110                    @param the position where to put the stone plus the player who makes the move
    110111            */
    111             bool isValidMove(const Vector4 move,const int playerColor);
     112            bool isValidMove(const Vector4 move);
    112113
    113114            /**
     
    115116                   @param the position where to put the stone plus the player who makes the move
    116117             */
    117             void makeMove(const Vector4 move, const int player);
     118            void makeMove(const Vector4 move, const mini4DgamePlayerColor::color playerColor);
    118119
    119120            /**
    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()
     121               @brief checks if somebody has won
     122               @return the winner with the winning fields or a winner with winner.color_ == mini4DgamePlayerColor::none if nobody has won so far.
     123            */
     124            Mini4DgameWinner Mini4DgameCenterpoint::getWinner();
    124125
    125126        private:
Note: See TracChangeset for help on using the changeset viewer.