Right now all of the battle code and interface is going into battle.js.
I'm guessing that eventually it might be very worthwhile to delegate a lot of stuff through a Turn class. Without it, the Battle object is probably going to handle a lot of nasty state about what's going on.
Right now I'm going to continue to put turn logic into Battle.js, because I don't have a good enough understanding of what is sent and needed every turn. (I'm going into this project assuming that anything we write is going to be bad the first time through).
Right now all of the battle code and interface is going into battle.js.
I'm guessing that eventually it might be very worthwhile to delegate a lot of stuff through a Turn class. Without it, the Battle object is probably going to handle a lot of nasty state about what's going on.
Right now I'm going to continue to put turn logic into Battle.js, because I don't have a good enough understanding of what is sent and needed every turn. (I'm going into this project assuming that anything we write is going to be bad the first time through).