W
weer1
Hi,
I am developing an RPG game and was wondering if I would have
advantages when I use some OO for the battle-engine. Actually I am now
trying to model the whole game in UML, just for the fun of it.
I have a model like this now:
GameObject Race Class
^ ^ ^
| | |
Hero-----------| |
|---------------------|
Thats about it. I also got a simple relation between hero-player and an
Action-class still hanging loose for spells/abilities later on.
Now the fun starts.
Lets presume there are only hero-type characters in this game so every
player(user) has a hero (not A character). I think weapons play an
important role. A Tree could be the weapon for a hero. Even a tree
could BE a hero (yes, you can play a tree in this game!). The
GameObject has got x-pos and y-pos
for the field-position.
How do I model these things? Am I on the right track? (and in the right
group)
Regards Weerius
I am developing an RPG game and was wondering if I would have
advantages when I use some OO for the battle-engine. Actually I am now
trying to model the whole game in UML, just for the fun of it.
I have a model like this now:
GameObject Race Class
^ ^ ^
| | |
Hero-----------| |
|---------------------|
Thats about it. I also got a simple relation between hero-player and an
Action-class still hanging loose for spells/abilities later on.
Now the fun starts.
Lets presume there are only hero-type characters in this game so every
player(user) has a hero (not A character). I think weapons play an
important role. A Tree could be the weapon for a hero. Even a tree
could BE a hero (yes, you can play a tree in this game!). The
GameObject has got x-pos and y-pos
for the field-position.
How do I model these things? Am I on the right track? (and in the right
group)
Regards Weerius