Make transformations more modular

Issue #186 resolved
V H. U repo owner created an issue

I'm going to start working on improving the game's transformation system to be more modular like I did with the spell system. To do this, I am going to implement the following transformation ADT:

Class Transformation
Implements Updateable
   dim currStep as Integer
   dim numSteps as Integer
   dim turnsTilNextStep as Integer
   dim wilImpact as Double
   dim canBeStopped as Boolean

   sub new(n as Integer, tts as Integer, wi as Double, cbs as Boolean)
   sub new(cs as Integer, n as Integer, tts as Integer, wi as Double, cbs as Boolean)

   overrides sub Update()
   sub stop()

   'the member classes will also have step methods that perform each step of the transformation

I'm also going to add a transformation stack to the player's update method that will trigger any tfs as needed.

This ADT should clean up the flow of transformations a little, as well as make it easier to add new ones.

Comments (1)

  1. Log in to comment