View Full Version : Questions about CvSelectionGroup.generatePath()


General Tso
Mar 04, 2009, 01:23 PM
I'm have a couple of questions about CvSelectionGroup.generatePath(), and would greatly appreciate some help on the matter.

1. The last three variables passed to it are. INT iFlags, BOOL bReuse, INT piPathTurns. Where do i find the values for iFlags and what do bReuse and piPathTurns do?

2. The variable piPathTurns needs to be a pointer to an integer. How do I create a pointer to an integer in Python?

I've tried looking all over, but I can't find any answers for these questions.

General Tso
Mar 07, 2009, 12:46 PM
No ideas out there? What I'm trying to do is get a list of the plots under the dotted line when the player attempts to move a unit. I have some code in onGotoPlotSet that warns the player if certian conditions exist on the destination plot. I'd like to do the same thing for the whole path.