Changeset d6b5f74 in network-game for client/Client
- Timestamp:
- Jan 29, 2014, 1:34:21 AM (11 years ago)
- Branches:
- master
- Children:
- 64a1f4e
- Parents:
- 6f64166
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r6f64166 rd6b5f74 825 825 switch(msg.type) 826 826 { 827 case MSG_TYPE_SCORE: 828 { 829 cout << "Received SCORE message!" << endl; 830 831 int blueScore; 832 memcpy(&blueScore, msg.buffer, 4); 833 cout << "blue score: " << blueScore << endl; 834 game->setBlueScore(blueScore); 835 836 int redScore; 837 memcpy(&redScore, msg.buffer+4, 4); 838 cout << "red score: " << redScore << endl; 839 game->setRedScore(redScore); 840 841 cout << "Processed SCORE message!" << endl; 842 843 break; 844 } 827 845 case MSG_TYPE_FINISH_GAME: 828 846 {
Note:
See TracChangeset
for help on using the changeset viewer.