crankycyclops/trogdor-pp

Make Entity setters validate input

crankycyclops opened this issue · 2 comments

If input is invalid, throw an exception. Investigate how this will impact things. Might alleviate some validation in the Parser (maybe?) Investigate!

A good example of how the parser will change to accomodate validated setters can be found in Parser::parseCreatureWandering().

I'm now validating the name property. Still have to do others (including aliases.)