View Single Post
Old 08-05-2004, 09:09 PM   #14 (permalink)
bean56
Forum Expert
 
Join Date: Jun 2003
Location: around
Posts: 1,376
Send a message via ICQ to bean56 Send a message via AIM to bean56
Default

Well if you can call the constructor twice with both maps then that would be the best, but I don't think you can do that. I think your best bet is to make the solenhive function into solenhivetram and then copy it and make a solenhivefel and have the two maps different. You would also need to change the initialize function so that it has both a addregion new solenhivefel and a addregion new solenhivetram. so it would look something like
Code:
public static void Initialize()
		{
			Region.AddRegion( new SolenHiveRegionTram( 0 ) );
			Region.AddRegion( new SolenHiveRegionTram( 1 ) );
			Region.AddRegion( new SolenHiveRegionTram( 2 ) );
			Region.AddRegion( new SolenHiveRegionTram( 3 ) );
			Region.AddRegion( new SolenHiveRegionTram( 4 ) );

			Region.AddRegion( new SolenHiveRegionFel( 0 ) );
			Region.AddRegion( new SolenHiveRegionFel( 1 ) );
			Region.AddRegion( new SolenHiveRegionFel( 2 ) );
			Region.AddRegion( new SolenHiveRegionFel( 3 ) );
			Region.AddRegion( new SolenHiveRegionFel( 4 ) );
		}
Sorry, that's the best I can help you.
bean56 is offline   Reply With Quote