VRushLP / RigorMortisGame

A game made for TCSS491 Computational Worlds, Winter 2016
2 stars 0 forks source link

Change magic strings to constants #121

Closed VRushLP closed 7 years ago

VRushLP commented 7 years ago

There's currently a lot of code like " this.game.requestInputSend(agent, "damage", 1); "

That should probably instead read like " this.game.requestInputSend(agent, INPUT_TYPES.DAMAGE, 1) "

This could then be reflected in the Knight's input code as "case INPUT_TYPES.DAMAGE" or something.

VRushLP commented 7 years ago

Done in #131