I have a project I'm working on that resembles the game called "Fire Emblem."
In it, it is possible to place/remove units/soldiers on the game board.
My current problem is with removing units. Presently, the behaviour is like this:
I cannot remove units in places where no units exist.
I can place units. I can only remove the first unit I place. <- Main problem.
Can anyone help me fix this problem? My logic "feels" correct, but I have no idea what is actually wrong.
Functions of interest:
removeUnit
CUnit.removeSelf
Other information:
Programmed for/tested with Windows
Use ESC to access the menu
Use arrow keys to move the cursor (*)