Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor Battle2k console and action state machine #1573
As promised after battle 7 was merged, this is a series of commits to refactor the battle console and cleanup some of the mess from battle 5.
Currently this uses gtest for unit testing the WordWrap() function. I will change it to doctest, but for now I've put this PR up for early feedback.
Test cases for weapons:
A 2 weapon attack. The animations used are
RPG_RT is has a bug and plays them overtop of each other. I'm testing in wine so I think this is a wine bug. I don't remember this behavior and my game relies heavily on this not happening.
A weapon with attack all that crits and kills