Adding the MinionState interface
Change 1/1: Create new test unit for Minion State
Creating a new unit test for the implementation of MinionState so we can see if the new code will break or it retains the same behavior as it used to. Currently the test is only testing the functions implemented from MinionState
Diff showing lines changed
Changed the handleStateEffect to take an object of type Minion
Added a FrozenState to MinionState
Added a ChargeState to the MinionState
Add StealthedState to the MinionState
Created a MinionState factory so we can use that factory instead of always making a new MinionState object
Changed the current implementation of getWindfury and setWindfury to the getState and addState
Changed the occurence of getFrozen(), setFrozen() by the setState() and addState()
Adding a windfurystate to the minionstate
commented the test case for the tiger because with the normal test it failed
Changed the occurence of getCharge() and setCharge() to setState and addState
Added an extra test for the windfury state
Instead of making a new object every time make a factory that will return the object
Getting rid of the getCharge and getStealth and implementing the getState
Minion class with the refactoring changes
no message
Merge branch 'minion-state' into develop