Krice
Arcane
- Joined
- May 29, 2010
- Messages
- 1,648
I've been working on some actions like kicking. Previously kicking was a virtual function for object types, but now it's a procedure with objects having much simpler virtual functions for damage and some kind of result which change the internals of a game object. The 'kick' procedure can take in both creatures and player character as a kicker and even though you need some checks for player vs. npc it's still easier to control I think. The control flow and understanding what it happening during kicking is easier with one procedure.