Up Previous Next

We could wrap all the necessary decorations along with a minimal API in a class (we have shown this already, elsewhere).

Then clients and servers would be free agents, extend that (abstract) class and activate/implement only what they care to.

This will have the advantage and disadvantage of hiding away all the details, while enforcing a minimal API.

That might be one way to go about it, certainly.

But another would be the path we have taken here: simply decorate the code in RMI fashion.

It's not too bad, after all:

At the end we will even argue that not only this is not too bad, but that it is in fact good, because:

OK, now we can continue to develop the game knowing that the server and the clients are separate programs.

Separate programs on the same computer or on different computers: it doesn't matter.

That, in fact, is the whole essence of this method.


Up Previous Next