Public Types | |
| using | PointsType = Common::Array< Common::Point > |
Public Member Functions | |
| Region (const Common::String &resourceName, Common::SeekableReadStream &stream) | |
| Region (const Common::Rect rect) | |
| bool | pointIn (Common::Point point) const |
| Common::String | toString () const |
| void | move (Common::Point rel) |
| Common::Point | topLeft () const |
| bool | empty () const |
| int | walkPointInside (Common::Point p) const |
| bool | snapSpiral (Common::Point &p, int maxRadius) const |
| bool | lineStepUntilInside (Common::Point &p, int dx, int dy) const |
| bool | snapToNearestEdge (Common::Point &p, bool &onVertex) const |
| bool | buildWalkPath (Common::Array< Common::Point > &path, Common::Point from, Common::Point to) const |
Public Attributes | |
| Common::String | name |
| Common::Point | center |
| uint16 | flags |
| Common::Array< PointsType > | regions |