Hi, I am currently building a multiplayer system, and I have a design question about how to manage lot small variations of data between lot of objects.
I'll start with an example: Let's say I have 3 players: A, B and C. A is friendly with B and enemies with C. That means, I must show C that A is an enemy and B that A is friendly. Now I have 2 different (but small) variations of the same data. This is just an example. Another variation would be that A goes into stealth, and B can see A, but C would not be able to see A. As said, these are just examples. It is planned to have much more and different states of player data, mostly varying between each object.
How should I manage this? A ton of if blocks, or is there some obvious design pattern I have missed? Since this is a multiplayer game, there will be much more than just 3 players/objects or states for that matter.