mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
11
cockatrice/src/playerlist.cpp
Normal file
11
cockatrice/src/playerlist.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "playerlist.h"
|
||||
|
||||
Player *PlayerList::findPlayer(int id) const
|
||||
{
|
||||
for (int i = 0; i < size(); i++) {
|
||||
Player *temp = at(i);
|
||||
if (temp->getId() == id)
|
||||
return temp;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue