Changeset edfd1d0 in network-game for common/Player.cpp
- Timestamp:
- Dec 25, 2012, 6:27:14 PM (12 years ago)
- Branches:
- master
- Children:
- 4c202e0
- Parents:
- baaf6c8
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
rbaaf6c8 redfd1d0 10 10 this->name = name; 11 11 this->password = password; 12 this->pos.x = 200; 13 this->pos.y = 200; 12 14 13 15 cout << "Created new player: " << this->name << endl; … … 18 20 this->name = name; 19 21 this->password = ""; 22 this->pos.x = 200; 23 this->pos.y = 200; 20 24 this->addr = addr; 21 25 … … 31 35 this->addr = addr; 32 36 } 37 38 void Player::clearSensitiveInfo() 39 { 40 this->password = ""; 41 this->addr.sin_family = 0; 42 this->addr.sin_port = 0; 43 this->addr.sin_addr.s_addr = 0; 44 }
Note:
See TracChangeset
for help on using the changeset viewer.