Heya, Thanks for the response
Well basically, I'm making a Flexible Grid system consisting of Nodes, that can contain other properties, such
as having a status of being occupied or not, having an Id, etc. I am using composition saying each Node has a Vertex (this is my custom Vertex, extending sf::Vertex). However, I need to have some kind of mapping back to the Node it's in with a key pair value for when I operate on it through the index in the sf::VertexArray. In example, say I have
NodeId set to one, when this nodes vertex is getting appended I would also be setting it's
nodeKey to
NodeId. Then when iterating over the array I can say, if
nodeKey ==
NodeId, do something. So ultimately I am adding a method for getting/setting nodeKey in this case.
See my github for a better idea
https://github.com/jjamesdk/MazeMania/wiki/Snapshots-throughout-the-SDLCThanks again