Esempio n. 1
0
 public clsConnection(clsGenerateMap.clsPassageNode NewPassageNodeA, clsGenerateMap.clsPassageNode NewPassageNodeB)
 {
     clsGenerateMap.clsPassageNode.sConnection connection;
     this.PassageNodeA_ConnectionNum = -1;
     this.PassageNodeB_ConnectionNum = -1;
     this.PassageNodeA = NewPassageNodeA;
     connection.Connection = this;
     connection.IsB = false;
     this.PassageNodeA.Connection_Add(connection);
     this.PassageNodeB = NewPassageNodeB;
     connection.Connection = this;
     connection.IsB = true;
     this.PassageNodeB.Connection_Add(connection);
 }
Esempio n. 2
0
 public clsGenerateMap.clsConnection FindConnection(clsGenerateMap.clsPassageNode PassageNode)
 {
     int num2 = this.ConnectionCount - 1;
     for (int i = 0; i <= num2; i++)
     {
         if (this.Connections[i].GetOther() == PassageNode)
         {
             return this.Connections[i].Connection;
         }
     }
     return null;
 }
Esempio n. 3
0
 public frmGenerator(frmMain Owner)
 {
     base.FormClosing += new FormClosingEventHandler(this.frmGenerator_FormClosing);
     base.Load += new EventHandler(this.frmWZMapGen_Load);
     this.PlayerCount = 4;
     this.Generator = new clsGenerateMap();
     this.InitializeComponent();
     this._Owner = Owner;
 }