Hey, i want to create a create an object or class (not really sure which one) that can keep track of player data. Like the following:

class player
{
playerid;
playername;
playerposition;
playerlevel;
etc...
etc...
}

But i'm not really sure how to do this. I was thinking of creating a class for this.

So suppose im in my "sockRecieve" class. In that class, a player (player 1) connects and i need to create an object/class for this player. So i can keep track of who he is and what position he has.

So if the player connects i want to be able to fill the variables like so:

player.playerid = 1;
player.playername = "blaat";
etc..
etc..

But i don't want to keep track of one player, i need to keep track of multiple players. So how can i effectivly store data of more than one player? Should i use an object for this or a class??

And more importntly, how do i do that??