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); }
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; }
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; }