Hello,
Pikiou is right: getAllDatas infos are private and cannot be sniffed by other players. So it's safe. NotifyPlayer, obviously, is safe too.
I realized more than 20 games and never feel the need of something else... I understand that sending private info in game state argument can be useful at some point, but this is difficult to implement. In fact, game state argument is linked with game state infos, and game state infos is public. Game state argument exists to simplify the data structure of the games, because without arguments you would have to create a lot of database structures that are used only for specific game states.
So my advice is: notifyPlayer do the job
Cheers,
Pikiou is right: getAllDatas infos are private and cannot be sniffed by other players. So it's safe. NotifyPlayer, obviously, is safe too.
I realized more than 20 games and never feel the need of something else... I understand that sending private info in game state argument can be useful at some point, but this is difficult to implement. In fact, game state argument is linked with game state infos, and game state infos is public. Game state argument exists to simplify the data structure of the games, because without arguments you would have to create a lot of database structures that are used only for specific game states.
So my advice is: notifyPlayer do the job
Cheers,