41 |
public class VobScene { |
public class VobScene { |
42 |
public final VobMap map; |
public final VobMap map; |
43 |
public final VobCoorder coords; |
public final VobCoorder coords; |
44 |
|
public final VobMatcher matcher; |
45 |
|
|
46 |
public final gzz.client.GraphicsAPI gfxapi; |
public final gzz.client.GraphicsAPI gfxapi; |
47 |
public final gzz.client.GraphicsAPI.Window window; |
public final gzz.client.GraphicsAPI.Window window; |
48 |
|
|
49 |
|
|
50 |
public final Dimension size; |
public final Dimension size; |
51 |
public VobScene(VobMap m, VobCoorder c, |
public VobScene(VobMap m, VobCoorder c, VobMatcher mat, |
52 |
gzz.client.GraphicsAPI gfxapi, |
gzz.client.GraphicsAPI gfxapi, |
53 |
gzz.client.GraphicsAPI.Window window, |
gzz.client.GraphicsAPI.Window window, |
54 |
Dimension size) { |
Dimension size) { |
55 |
this.map = m; |
this.map = m; |
56 |
this.coords = c; |
this.coords = c; |
57 |
|
this.matcher = mat; |
58 |
this.gfxapi = gfxapi; |
this.gfxapi = gfxapi; |
59 |
this.window = window; |
this.window = window; |
60 |
this.size = size; |
this.size = size; |
74 |
put(v, null, d, x, y, w, h); |
put(v, null, d, x, y, w, h); |
75 |
} |
} |
76 |
public void put(Vob v, Object key, float d, float x, float y, float w, float h) { |
public void put(Vob v, Object key, float d, float x, float y, float w, float h) { |
77 |
int c = coords.coordsys(0, key, d, x, y, w, h); |
int c = coords.coordsys(0, d, x, y, w, h); |
78 |
|
if(key != null) |
79 |
|
matcher.add(c, key); |
80 |
map.put(v, c); |
map.put(v, c); |
81 |
} |
} |
82 |
|
|
83 |
|
public int coordsys(int into, Object key, float d, float x, float y, float w, float h) { |
84 |
|
int cs = coords.coordsys(into, d, x, y, w, h); |
85 |
|
matcher.addSub(into, cs, key); |
86 |
|
return cs; |
87 |
|
} |
88 |
|
|
89 |
|
public Object getKeyAt(float x, float y, float[] targetcoords) { |
90 |
|
return null; |
91 |
|
} |
92 |
|
|
93 |
public void dump() { |
public void dump() { |
94 |
map.dump(); |
map.dump(); |
95 |
coords.dump(); |
coords.dump(); |