Closed Rushwind13 closed 3 weeks ago
this will drop out all the GetRandom(0,DUNG_WIDTH) type calls
can expand to "give me a vector" or "Give me a rect" and "bounds are this" can be in nice wrappers for ROOM, HALLWAY, Item, Monster, ...
a lot of this work is in https://github.com/Rushwind13/JMoria/pull/80 AnyOpenTile() is the cool function also Contains() and Nearby() and IsInRect / IsWithinRect
this will drop out all the GetRandom(0,DUNG_WIDTH) type calls
can expand to "give me a vector" or "Give me a rect" and "bounds are this" can be in nice wrappers for ROOM, HALLWAY, Item, Monster, ...