public Map(int x, int y) { width = x; height = y; layers = new ArrayList(); entities = new ArrayList(); obs = new VectorIndexBuffer(); }
public void Generate(VectorIndexBuffer b) { lines = new Line[b.Lines.Count]; int pos = 0; foreach (int[] i in b.Lines) { lines[pos++] = new Line((Vertex)b.Points[i[0]], (Vertex)b.Points[i[1]]); } }
public VectorObstructionMap(VectorIndexBuffer b) { Generate(b); }