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/Mini4Dgame.h

    r10115 r10121  
    5757        };
    5858
    59 
     59        struct Mini4DgameWinner
     60        {
     61                int winningRow[4];
     62                int winningColumn[4];
     63                int winningHeight[4];
     64                int winningNumber[4];
     65                mini4DgamePlayerColor::color color_;
     66        };
    6067    /**
    6168    @brief
     
    7885                { this->center_ = center; }
    7986
    80 //TODO: enum colors
    81             PlayerInfo* getPlayer(int color) const; //!< Get the player with the specified color.
    82 
    83 
    84             //bool isValidMove(Vector4* move, const Mini4DgameBoard* board);//!< Checks if the move is valid
     87            void win(Mini4DgameWinner winner);
    8588
    8689        protected:
     
    9194            void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats.
    9295
    93           Mini4DgamePlayer players[2];
     96            Mini4DgamePlayer players[2];
    9497
    9598            WeakPtr<Mini4DgameCenterpoint> center_; //!< The playing field.
    96 
    97             //TODO: Board is missing up to now
    9899    };
    99100}
Note: See TracChangeset for help on using the changeset viewer.