/[gzz]/gzz/gzz/vob/VobScene.java
ViewVC logotype

Diff of /gzz/gzz/vob/VobScene.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by tjl, Thu Aug 29 09:41:16 2002 UTC revision 1.11 by tjl, Wed Sep 25 14:45:43 2002 UTC
# Line 41  import java.awt.*; Line 41  import java.awt.*;
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;
# Line 72  public class VobScene { Line 74  public class VobScene {
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();

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26