public void AddEdge(int S, int D, ROAD_TYPE rType) { Edge edge = new Edge(); edge.adjacent = listNodes[S]; edge.weight = Random.Range(5, 10); edge.road_type = rType; listNodes[D].adjacents.Add(edge); }
public Assembly(string name, Road road, Reel reel, FLine fLine, Lure lure, ROAD_TYPE roadType) { this.proad = road; this.reel = reel; this.fLine = fLine; this.lure = lure; this.roadType = roadType; this.name = name; }
public Road(string name, ROAD_TYPE type, int power, int price, Bitmap pic) : base(name, price, pic) { Power = power; Type = type; }