leenephi/GameLearning_PlusPlus — comment on commit d20dbd423cef8384edbf56dbb405958bfc844b03
File:  line 0
By leenephi:

haha yeah.. I couldn't stop once I actually started.

I'm not sure if it's easy to tell what's going on. I found a cool forum post on item hierarchy. All the items are still entities as of now (to continue and handle collision), but then from items we can have weapons, armor, consumables... and then a vector of *items could be our inventory basically.. woot! :)

And the weapon.. works like.. when you click, it becomes a collidable object based on the player's X and Y for that one very loop (though as of now it still stays until an enemy walks into it), and then becomes a "maponly" entity again. Anyway, it works :) And thus the weapon attack range is the same as its width.

And.. yeah! From this we should be able to easily add new enemies, items, and weapons, that work. The player just needs to Wield(*weapon weapon) it! :D