/* */ package NET.worlds.scape; /* */ /* */ import NET.worlds.console.Main; /* */ import NET.worlds.console.MainCallback; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class WObjectHighlighter /* */ implements MainCallback /* */ { /* */ private WObject target; /* */ private Room room; /* */ private boolean newState; /* */ private boolean registered; /* */ /* */ public WObjectHighlighter(WObject target) /* */ { /* 274 */ this.target = target; /* 275 */ start(); /* */ } /* */ /* */ public synchronized void mainCallback() /* */ { /* 280 */ if (this.newState != this.target.getHighlit()) { /* 281 */ this.target.setHighlit(this.newState); /* 282 */ if (this.newState) { /* 283 */ this.room = this.target.getRoom(); /* 284 */ if (this.room != null) { /* 285 */ this.room.highlightTarget = this.target; /* */ } /* */ } /* 288 */ else if (this.room != null) { /* 289 */ this.room.highlightTarget = null; /* 290 */ this.room = null; /* */ } /* */ } /* */ /* 294 */ Main.unregister(this); /* 295 */ this.registered = false; /* */ } /* */ /* */ public synchronized void start() /* */ { /* 300 */ this.newState = true; /* 301 */ registerMe(); /* */ } /* */ /* */ public synchronized void stop() /* */ { /* 306 */ this.newState = false; /* 307 */ registerMe(); /* */ } /* */ /* */ private synchronized void registerMe() /* */ { /* 312 */ if (!this.registered) { /* 313 */ Main.register(this); /* 314 */ this.registered = true; /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\WObjectHighlighter.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */