TheOverWhelm
Member
- Reaction score
- 16
Nubby JASSER 'ere
I read some tutorials about Structs.
So that means I've read this
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=63595 [Structs tutorial]
And this
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=127853 [Newgen Addon]
I decided to start making a struct for a hero system (not even a system) stuff so I could just mess around with it, y'know, do whatever. Learning experiences ^_^
This 'system' pretty much does everything a hero is and modifies it accordingly.
the initial STR, INT, AGI, and the Raise Per Level and such.
At one point, the first link says
" method RaiseAgi takes nothing returns nothing //encapsulation specifies that we let functions do as little as possible on their own"
Why is this?
Reason I'm asking is that it really is doing as little as possible. I was just going to have my system automatically increase the whole "per level" thing but an outside trigger would need to call heroData.LevelUp() [I think that's how you'd call it!]
I read some tutorials about Structs.
So that means I've read this
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=63595 [Structs tutorial]
And this
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=127853 [Newgen Addon]
I decided to start making a struct for a hero system (not even a system) stuff so I could just mess around with it, y'know, do whatever. Learning experiences ^_^
This 'system' pretty much does everything a hero is and modifies it accordingly.
the initial STR, INT, AGI, and the Raise Per Level and such.
At one point, the first link says
" method RaiseAgi takes nothing returns nothing //encapsulation specifies that we let functions do as little as possible on their own"
Why is this?
Reason I'm asking is that it really is doing as little as possible. I was just going to have my system automatically increase the whole "per level" thing but an outside trigger would need to call heroData.LevelUp() [I think that's how you'd call it!]