Changeset d436ac4 in network-game for common/Player.h
- Timestamp:
- May 18, 2013, 6:36:54 PM (12 years ago)
- Branches:
- master
- Children:
- 7efed11
- Parents:
- 7f2cef0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.h
r7f2cef0 rd436ac4 23 23 Player(const Player& p); 24 24 Player(string name, string password); 25 Player(string name, sockaddr_in addr); // this will be deleted26 25 27 26 ~Player(); … … 33 32 void setAddr(sockaddr_in addr); 34 33 34 void draw(POSITION pos, bool curPlayer); 35 35 bool move(WorldMap *map); 36 37 void takeFlag(int flag, WorldMap *map); 38 void dropFlag(int flag, WorldMap *map); 36 39 37 40 int id; … … 42 45 POSITION target; 43 46 unsigned long long timeLastUpdated; 47 48 int team; // 0 is blue, 1 is red 49 bool hasBlueFlag; 50 bool hasRedFlag; 44 51 }; 45 52
Note:
See TracChangeset
for help on using the changeset viewer.