From: <Rag...@we...> - 2005-08-07 16:35:34
|
Hi, > same opinion as Hans in this interface thing. Let's call it API, as it=20 > may be spread over several interfaces if it is needed. The definition of= =20 > the interface/API is the very first step before any=20 > refactoring/xml-writing is done. ...and before I can start implementing my ideas, as otherwise a hard fork = would be necessary. > > This breaks object oriented principles such as encapsulation, > I don't think so. All RPObjects (marauroa.common.game.RPObject) keep=20 > track of there properties in some kind of map, mapping the property=20 > names to their values. It is like using reflective getters and setters.=20 > There is no need to create special implementations of the RPObjects. From what I have seen, Marauroa has only a very few parts to be touched at= all (primarily I miss a 1 player : n characters relation), but that isn't= on the top ten list. What bothers me more, are the deep class-hierarchies (not least but for pe= formance-reasons). This is but a gut-feeling, though, I have to examine it= further. Does anyone here have or knows of a tool to print or at least visualize cl= ass-trees=3F > The most difficult part won't be the server side but the client side=20 > (GUI stuff) as Ragnar said already. Here we do need some kind of design=20 > document describing the changes in the GUI. Yes, indeed. But still, there is no immediate need to invest work here, as= , in a way, the client follows the server: We'll know when to start workin= g things out, because there will be no choice. Because of the server-based= principles of Marauroa, there aren't many pitfalls to take care of on the= client side regarding design and planning. The only exception for me is the hp-bar. Where the *#+#*! is the code hidd= en that displays and changes the bar... (Ragnar dives into the code again)= . Ragnar-GD =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Mit der Gruppen-SMS von WEB.DE FreeMail k=F6nnen Sie eine SMS an alle=20 Freunde gleichzeitig schicken: http://freemail.web.de/features/=3Fmc=3D021179 |