From: Astrid S. <ast...@us...> - 2007-03-11 22:50:12
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv29943/src/games/stendhal/client/gui/wt Modified Files: Minimap.java Log Message: added some javadoc comments Index: Minimap.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt/Minimap.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Minimap.java 11 Mar 2007 20:52:13 -0000 1.30 --- Minimap.java 11 Mar 2007 22:50:04 -0000 1.31 *************** *** 53,57 **** /** Enable X-ray vision (aka Superman) minimap? */ ! private static final boolean mininps = (System.getProperty("stendhal.superman") != null); /** scale of map */ --- 53,57 ---- /** Enable X-ray vision (aka Superman) minimap? */ ! private static final boolean mininps = (System.getProperty("stendhal.superman") != null); /** scale of map */ *************** *** 225,229 **** } ! protected void drawNPC(Graphics g, Entity entity) { if (entity instanceof Sheep) { drawNPC(g, entity, Color.ORANGE); --- 225,234 ---- } ! /** ! * draws NPC as rectangle to Minimap selecting color by class of Entity ! * @param g Graphics ! * @param entity the entity dto be drawn ! */ ! protected void drawNPC(final Graphics g, final Entity entity) { if (entity instanceof Sheep) { drawNPC(g, entity, Color.ORANGE); *************** *** 237,241 **** } ! protected void drawNPC(Graphics g, Entity entity, Color color) { Rectangle2D area; area = entity.getArea(); --- 242,252 ---- } ! /** ! * calculates position of NPC rectangle and draws it to Minimap in the sepecified color ! * @param g graphics ! * @param entity the Entity to be drawn ! * @param color the Color to be used ! */ ! protected void drawNPC(final Graphics g, final Entity entity, final Color color) { Rectangle2D area; area = entity.getArea(); *************** *** 253,257 **** } ! public void setPlayer(Player player) { this.player = player; } --- 264,272 ---- } ! /** ! * sets the current Player ! * @param player ! */ ! public void setPlayer(final Player player) { this.player = player; } |