sbuller / divided-posterity

An online multiplayer browser based bonanza.
4 stars 0 forks source link

Combat Messages (Messages from combat) #16

Closed sbuller closed 15 years ago

sbuller commented 15 years ago

Messages need to not be stored on Combats, as in the future it may be possible to have multiple perspectives on a single Combat - indeed, this is what we're working towards.

frazazel commented 15 years ago

In our discussion a few days ago, you'd suggested saving messages on the Combatant.

frazazel commented 15 years ago

The current thought on this is that messages and their contexts will be stored on the Combat class. At that point, any Hero can grab and render the messages.The problem is that the context includes more than mere strings. It has instances of Combatants and stuff in it. How can this be dealt with?

frazazel commented 15 years ago

Implemented. Messages are added through a Combat, but rather than being saved on the Combat, they are saved on each Hero in that Combat (with different pov as appropriate).