Tag Info

New answers tagged

0

I think that any good OOP source you check will advise you to program against interfaces, which is one of the pillars of OOP, so your first option would be better. However the problem here is conceptual. If you think about it, your weapons doesn't have a bullet, as your model suggest, but it produces bullets. In that sense, what your really need is to use a ...


9

They're typically not even handled by the same machine, much less the same codebase. The user profile is handing by a service that deals only with users. The simulation server deals with in-game things. There may even be another session server that ties the two together. The simulation server has an ID that corresponds to each user, so its Player class ...


2

The problems i have run into is i can't move the WorldEvent,WorldListener, or World classes into a separate package under the moniker World.my.game because of the static reference. Don't make the listener inside the World object static. A static class member means the object is shared across all instances of the type (all instances of World in this ...



Top 50 recent answers are included