67 |
public void place(Cell c, Object o, float fract, int x0, int y0, int x1, int y1, |
public void place(Cell c, Object o, float fract, int x0, int y0, int x1, int y1, |
68 |
int depth, float rot) { |
int depth, float rot) { |
69 |
// p("Place "+c+" "+fract+" "+x0+" "+y0+" "+x1+" "+y1+" "+depth); |
// p("Place "+c+" "+fract+" "+x0+" "+y0+" "+x1+" "+y1+" "+depth); |
70 |
int cs = vs.coords.coordsys(into, c, depth, x0, y0, x1-x0, y1-y0); |
int cs = vs.coords.coordsys(into, depth, x0, y0, x1-x0, y1-y0); |
71 |
|
vs.matcher.add(cs, c); |
72 |
vs.map.put(cellImage, cs); |
vs.map.put(cellImage, cs); |
73 |
} |
} |
74 |
public void connect(Cell c1, Cell c2, int dx, int dy) { |
public void connect(Cell c1, Cell c2, int dx, int dy) { |
75 |
int cs1 = vs.coords.getCoordsys(c1); |
int cs1 = vs.matcher.getCS(c1); |
76 |
int cs2 = vs.coords.getCoordsys(c2); |
int cs2 = vs.matcher.getCS(c2); |
77 |
if(cs1 <= 0 || cs2 <= 0) return; |
if(cs1 <= 0 || cs2 <= 0) return; |
78 |
if(dx > 0) { |
if(dx > 0) { |
79 |
vs.map.put(connHoriz, cs1, cs2); |
vs.map.put(connHoriz, cs1, cs2); |