Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(playing){
- playing = false;
- for(int i = 0; i < playerAmount; i++){
- *currentPlayer = *players[i];
- cout << "Current player " << currentPlayer->getName() << " players[i] = " << players[i]<< endl;
- if(currentPlayer->isPlaying()){
- playing = true;
- cout << "i = " << i << endl << currentPlayer->getName() << "("<<currentPlayer<<")>";
- cin >> playerInput;
- cout << endl;
- currentPlayer->setPlaying(processInput(playerInput));
- }
- }
- }
Add Comment
Please, Sign In to add comment