You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the Cell and Edges and the next fundamental class we should implement is the GridPoint (other names include Intersection or idk). The GridPoint represents the location where Edges meet. The would be useful for a few reasons:
provide another location to fix objects, once we get to populating the dungeons
can make exporting easier if we want to draw walls/boundaries from the corners of Cells or boundaries that cut through Cells
It should be developed just like the Edge class. It should be defined in a grid_point.py file. A spec would be:
And it should only be instantiated from within the Grid class:
# grid.pyclassGrid:
def__init__(self, ...):
...
self.link_edges_to_grid_points()
deflink_edges_to_grid_points(self):
# connect the edges to the grid_points and vice versa
The Edge class should get pointers to the GridPoints as well.
The text was updated successfully, but these errors were encountered:
We have the
Cell
andEdges
and the next fundamental class we should implement is theGridPoint
(other names includeIntersection
or idk). TheGridPoint
represents the location whereEdge
s meet. The would be useful for a few reasons:Cell
s or boundaries that cut throughCell
sIt should be developed just like the
Edge
class. It should be defined in agrid_point.py
file. A spec would be:And it should only be instantiated from within the
Grid
class:The
Edge
class should get pointers to theGridPoints
as well.The text was updated successfully, but these errors were encountered: