In a multiplayer game, should I store the list of character names on the Player class?
Posted
by
Gökhan Nas
on Game Development
See other posts from Game Development
or by Gökhan Nas
Published on 2014-05-02T01:15:54Z
Indexed on
2014/06/01
22:01 UTC
Read the original article
Hit count: 220
I am writing a multiplayer game that has account system and character creation system like standart MMORPGs. I have a question about name creating issue. I think that I can create a static variable on Player class that keeps created player names but it confused me. It will tell me name is valid or unvalid depends on the other players has this name.
Questions;
Does implementation does make sense ?
If i have 1000 players, is it means it consumes 1000 times of memory of this list? Or it just consume as like there is one?
What is your suggestion for place that I can keep player name list? A new class?
© Game Development or respective owner