Changeset 85da778 in network-game for client/Client
- Timestamp:
- Nov 11, 2014, 1:26:14 AM (10 years ago)
- Branches:
- master
- Children:
- 6ba31d2
- Parents:
- 48801af
- Location:
- client/Client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/GameRender.cpp
r48801af r85da778 96 96 al_draw_filled_circle(pos.x, pos.y, 14, al_map_rgb(0, 0, 0)); 97 97 98 if (p->team == 1)98 if (p->team == Player::TEAM_BLUE) 99 99 color = al_map_rgb(0, 0, 255); 100 else if (p->team == 2)100 else if (p->team == Player::TEAM_RED) 101 101 color = al_map_rgb(255, 0, 0); 102 102 else { -
client/Client/main.cpp
r48801af r85da778 1546 1546 void joinWaitingArea() { 1547 1547 cout << "joining waiting area" << endl; 1548 currentPlayer->team = 0;1548 currentPlayer->team = Player::TEAM_NONE; 1549 1549 1550 1550 msgTo.type = MSG_TYPE_JOIN_TEAM; … … 1556 1556 void joinBlueTeam() { 1557 1557 cout << "joining blue team" << endl; 1558 currentPlayer->team = 1;1558 currentPlayer->team = Player::TEAM_BLUE; 1559 1559 1560 1560 msgTo.type = MSG_TYPE_JOIN_TEAM; … … 1566 1566 void joinRedTeam() { 1567 1567 cout << "joining red team" << endl; 1568 currentPlayer->team = 2;1568 currentPlayer->team = Player::TEAM_RED; 1569 1569 1570 1570 msgTo.type = MSG_TYPE_JOIN_TEAM;
Note:
See TracChangeset
for help on using the changeset viewer.