I have a type called .player . As players log in it creates a new.player .
I have a main loop that checks each players moves/actions in turn. My problem is , if i want to address a different player than the one the loop is on, say to change a field value , how would i access that player and then continue with the main loop?
my only solution i have come up with so far, is to save players stats to the HD, and then i can access them randomly by player\name. the down side is this takes time accessing the HD. The upside is i have random access to any player field.
I have a main loop that checks each players moves/actions in turn. My problem is , if i want to address a different player than the one the loop is on, say to change a field value , how would i access that player and then continue with the main loop?
my only solution i have come up with so far, is to save players stats to the HD, and then i can access them randomly by player\name. the down side is this takes time accessing the HD. The upside is i have random access to any player field.