Abstract skill/talent system implementation

Posted by kiliki on Game Development See other posts from Game Development or by kiliki
Published on 2012-12-15T02:42:57Z Indexed on 2012/12/15 5:24 UTC
Read the original article Hit count: 247

Filed under:
|

I've been making small 2D games for about 3 years now (XNA and more recently LWJGL/Slick2D). My latest idea would involve some form of "talent tree" system in a real time game.

I've been wracking my brain but can't think of a structure to hold a talent. Something like

"Your melee attack is an instant kill if behind the target"

I'd like to come up with an abstract object rather than putting random conditionals into other methods. I've solved some relatively complex problems before but I don't even know where to begin with this one.

Any help would be appreciated - Java, pseudocode or general concepts are all great.

© Game Development or respective owner

Related posts about java

Related posts about architecture