Questions about CvSelectionGroup.generatePath()

General Tso

Panzer General
Joined
Oct 12, 2007
Messages
1,548
Location
U. S. of A.
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.
 
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.
 
Back
Top Bottom