leftiness / hex_math

MIT License
4 stars 1 forks source link

Walls as edges #2

Closed leftiness closed 8 years ago

leftiness commented 8 years ago

TLDR

Walls could be stored as edges instead of full hexagon points.

Notes

By using an extra property (and perhaps a separate HashSet<Wall>), walls could be stored as edges instead of full hexagon points. This would impact calculations like field of view and pathfinding.

Resources

leftiness commented 8 years ago

Walls as edges might be something that's not handled in hex_math. Am I going to have something like Plane<Hex> where Hex { point: Point, other: Property } in hex_math? I think not. This hex_math would just be provided with arguments like startingPoint: Point and invalidPoints: HashSet<Point>.

leftiness commented 8 years ago

Well, maybe it would be part of hex_math. Otherwise, would I provide a cant_go_northwest_from_these: HashSet<Point>? That kind of information is needed for fov, pathfinding, flooding...

leftiness commented 8 years ago

Confirmed. #2 blocks #1, #3, #6.

leftiness commented 8 years ago

Duplicated in #30.