C
Crirus
I have a map in a game. I need to make a list with all visible objects for a
player
So, any building and any unit offer a range of visibility over the map.
Now VB question:
How can I store the references of that visible objects in a collection, to
make sure I added one object only once...?
Moreover ..how to determine if a certain object belong to the visible
list...
I could have a GraphicsPath from all regions visible to the the Player and
iterate through all other players's objects, and check out if it is inside
the visible GraphicsPath, but I noticed that GraphicsPath.IsVisible is very
slow even with 2 circles added to the path...
Any thoughts?
player
So, any building and any unit offer a range of visibility over the map.
Now VB question:
How can I store the references of that visible objects in a collection, to
make sure I added one object only once...?
Moreover ..how to determine if a certain object belong to the visible
list...
I could have a GraphicsPath from all regions visible to the the Player and
iterate through all other players's objects, and check out if it is inside
the visible GraphicsPath, but I noticed that GraphicsPath.IsVisible is very
slow even with 2 circles added to the path...
Any thoughts?