rdemoparty / stardust

2D sidescroller
2 stars 0 forks source link

Refactoring: move inflictDamage to scripting #21

Closed benishor closed 8 years ago

benishor commented 8 years ago

Remove GameObject#inflictDamage() so that it will not be part of the C++ code anymore. Simply delivering the event along with context to the script will allow us to later implement bosses whose self created minions deliver the damage to itself. Check to also update current brains to perform the same logic that GameObject#inflictDamage() was performing.