Hey everyone, I figured I'd ask around for a question that's stumping myself and my programmer. It seems like such a simple aspect but apparantly it's not.
Basically, we're got a game board set up with several varying sized and shaped areas that are selectable. Once a player selects an area they possess, they can issue orders to that area. However, this is where our problem occurs, the player needs to be restricted to being able to give orders to the starting area itself and the areas adjacent to that area.
We have a few solutions but none of them are really as elastic as we'd like. Obviously we could load a number for each area and the neighbors for each area from a txt file or whatever, but we would rather have a one size fits all approach to this.
If you need me to explain this further, please let me know, I think I explained it correctly, but it doesn't matter what I think about how I've explained it.
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!
with more complicated questions, the use of diagrams, or psuedocode to what youre problem is, helps tremendously in getting the answer you want. the more information you get, the better answer you will get.
if im understanding the question correctly, would it not just be easiest to use a variation of a pathfinding algorithm? to find the areas selectable adjacent to the players possessed areas?
or just fill the areas with numbers recording which is the starting point, and which numbers are allocated to which areas. then decide which areas are selectable according to those?
That'll do it Cecil, we came up with a good solution looking at it from that angle, now we just need to impliment it, I'll let you know how it goes. We've been pretty good about using flowcharts and psudocode (which is about all I'm good for when it comes to programming anyways), we were just looking at this one the completely wrong way. But thanks!
@Urbanmonk, they currently really don't have any data other than it's center point.
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!
Originally Posted by HorrendousGames That'll do it Cecil, we came up with a good solution looking at it from that angle, now we just need to impliment it, I'll let you know how it goes. We've been pretty good about using flowcharts and psudocode (which is about all I'm good for when it comes to programming anyways), we were just looking at this one the completely wrong way. But thanks!
Lol, if only all problems were sort of solved this easily But yeah, if you just make a flowchart to explain the thing better, sometimes you better understand how to do it.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Originally Posted by HorrendousGames That'll do it Cecil, we came up with a good solution looking at it from that angle, now we just need to impliment it, I'll let you know how it goes. We've been pretty good about using flowcharts and psudocode (which is about all I'm good for when it comes to programming anyways), we were just looking at this one the completely wrong way. But thanks!
Lol, if only all problems were sort of solved this easily But yeah, if you just make a flowchart to explain the thing better, sometimes you better understand how to do it.
Damn straight!
Oh, and I guess I should've mentioned that we did get this problem fixed, like 10 minutes after my last post in this thread. It actually solved like 10 other problems as well. Maybe I'm under/over exaderating?
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!