Changeset 7efed11 in network-game for common/Player.cpp
- Timestamp:
- May 18, 2013, 6:42:59 PM (12 years ago)
- Branches:
- master
- Children:
- c987d79
- Parents:
- d436ac4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
rd436ac4 r7efed11 91 91 } 92 92 93 void Player::draw(POSITION pos, bool curPlayer) {94 if (curPlayer)95 al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(255, 0, 0));96 else97 al_draw_filled_circle(pos.x, pos.y, 12, al_map_rgb(191, 0, 0));98 99 if (this->hasBlueFlag)100 al_draw_filled_rectangle(pos.x+4, pos.y-18, pos.x+18, pos.y-4, al_map_rgb(0, 0, 255));101 else if(this->hasRedFlag)102 al_draw_filled_rectangle(pos.x+4, pos.y-18, pos.x+18, pos.y-4, al_map_rgb(255, 0, 0));103 }104 105 93 bool Player::move(WorldMap *map) { 106 94 int speed = 100; // pixels per second
Note:
See TracChangeset
for help on using the changeset viewer.