Changeset 7efed11 in network-game for common/Player.cpp


Ignore:
Timestamp:
May 18, 2013, 6:42:59 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
c987d79
Parents:
d436ac4
Message:

Removed the draw method from the Player class to avoid an allegro dependency on the server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    rd436ac4 r7efed11  
    9191}
    9292
    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    else
    97       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 
    10593bool Player::move(WorldMap *map) {
    10694   int speed = 100; // pixels per second
Note: See TracChangeset for help on using the changeset viewer.