Original Post
Hi everbody, For an online game, I have a player class for the server ("ServerPlayer") and a player class for the client ("ClientPlayer"). Now, these two classes share some functionality, that's why tere is a base general base class "Player: Player -> ClientPlayer | v ServerPlayer So far so good. Now, i.E. create the library of the base functionality of my game (which includes "ServerPlayer", "ClientPlayer" and "Player") to allow other people to use it and make mods (or simililar games). These people can create more functionality on the server side by deriving from "ServerPlayer" and more functionality on the client side by deriving from "ClientPlayer". But what if they want to add some functionality used by the server and the client? Naturally that would have to be added to the "Player" class, before "ClientPlayer" and "ServerPlayer" are derived. How would you solve this problem? Thanks!