Changeset 7fa452f in network-game for client/Client
- Timestamp:
- Nov 8, 2014, 1:38:54 AM (10 years ago)
- Branches:
- master
- Children:
- 347d768
- Parents:
- 306758e
- Location:
- client/Client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/GameRender.cpp
r306758e r7fa452f 96 96 al_draw_filled_circle(pos.x, pos.y, 14, al_map_rgb(0, 0, 0)); 97 97 98 if (p->team == 0)98 if (p->team == 1) 99 99 color = al_map_rgb(0, 0, 255); 100 else if (p->team == 1)100 else if (p->team == 2) 101 101 color = al_map_rgb(255, 0, 0); 102 102 else { -
client/Client/main.cpp
r306758e r7fa452f 505 505 for (itPlayers = gamePlayers.begin(); itPlayers != gamePlayers.end(); itPlayers++) { 506 506 switch (itPlayers->second->team) { 507 case -1:507 case 0: 508 508 drawPosition = 200; 509 509 break; 510 case 0:510 case 1: 511 511 drawPosition = 400; 512 512 break; 513 case 1:513 case 2: 514 514 drawPosition = 600; 515 515 break; … … 1514 1514 void joinWaitingArea() { 1515 1515 cout << "joining waiting area" << endl; 1516 currentPlayer->team = -1;1516 currentPlayer->team = 0; 1517 1517 1518 1518 msgTo.type = MSG_TYPE_JOIN_TEAM; … … 1524 1524 void joinBlueTeam() { 1525 1525 cout << "joining blue team" << endl; 1526 currentPlayer->team = 0;1526 currentPlayer->team = 1; 1527 1527 1528 1528 msgTo.type = MSG_TYPE_JOIN_TEAM; … … 1534 1534 void joinRedTeam() { 1535 1535 cout << "joining red team" << endl; 1536 currentPlayer->team = 1;1536 currentPlayer->team = 2; 1537 1537 1538 1538 msgTo.type = MSG_TYPE_JOIN_TEAM;
Note:
See TracChangeset
for help on using the changeset viewer.