Does anyone know where I can find examples of class diagrams for RP game development? Something similar to here would be quite useful. I'm not looking for things I can slavishly copy, but just for different examples that diagram various solutions to the problems I'm discovering as I try and pencil down my own classes.
相关问题
- What uses more memory in c++? An 2 ints or 2 funct
- How Does WebSphere Choose the Classloading Order i
- Store data and global variables using the Applicat
- PHP Adding stylesheets to header
- Is it possible to set CSS for combined classes?
相关文章
- NameError: name 'self' is not defined, eve
- .NET - how to make a class such that only one othe
- Issue creating ImmutableMap with Class<?> as
- How to return new instance of subclass while initi
- C++ increment operator
- Code Iris plugin on Android Studio
- Python object containing an array of objects being
- Cannot access self:: when no class scope is active
Look at JADE's Javadoc for a good overview of a complex game :)
You may want to consider a component entity system rather than a traditional inheritance hierarchy; they tend to be more flexible to certain types of change, make tool (e.g. world editor) development much easier, and present opportunities for parallelization that might not otherwise be obvious or easy.
Many modern game engines are moving away from the "monolithic class Object" (or class Entity, whatever) and toward a "bag of components" approach.
There are numerous books and articles around. Generally:
Specifically (some noteworthy ones, google "component" and "entity" in various combinations for more):
Each of these articles links to a few more.
Try the kool-aid, you might like it. =)
Just to start:
How about something of the sort :
alt text http://img217.imageshack.us/img217/4886/classwo0.png
Here are some other diagrams:
Be bold, your game shouldn't be a clone of hack and slash nonsense. Your actors should be able to switch sides, take their own initiative enlist other actors, etc. Otherwise, whats the point?
I know Emmanuel Deloget from GameDev.net but I'm not sure I would choose to use the hierarchy he's got there! Too much inheritance, not enough flexibility.
If I was writing a text-based RPG (as I have done in the past) it would look a bit like this (though I've no time to draw up a diagram for it, sadly):
That would be the basic high level structure I'd use.