yellowstonegames / SquidLib

Useful tools for roguelike, role-playing, strategy, and other grid-based games in Java. Feedback is welcome!
Other
448 stars 46 forks source link

Add Zone::getInternalBorder + Allow cardinal directions in Rectangle.… #184

Closed smelc closed 6 years ago

smelc commented 6 years ago

…Util.getCorner(Rectangle, Direction) + add convenience implementations of size() and contains(int, int) in Zone.Skeleton + document how to proceed to implement a Zone correctly

tommyettinger commented 6 years ago

Looks good; I'll add the implementations in GreasedRegion if there are some methods already in place (I think surface() acts like the new interior border method). The CoordPacker-based Zone might be able to benefit as well, I'll take a look. Merging.