From: <aki...@us...> - 2006-12-23 14:07:07
|
Revision: 1224 http://svn.sourceforge.net/gridarta/?rev=1224&view=rev Author: akirschbaum Date: 2006-12-23 06:07:07 -0800 (Sat, 23 Dec 2006) Log Message: ----------- Add isPointValid() to common MapControl interface. Modified Paths: -------------- trunk/crossfire/src/cfeditor/map/MapControl.java trunk/daimonin/src/daieditor/map/MapControl.java trunk/src/app/net/sf/gridarta/map/MapControl.java Modified: trunk/crossfire/src/cfeditor/map/MapControl.java =================================================================== --- trunk/crossfire/src/cfeditor/map/MapControl.java 2006-12-23 13:36:24 UTC (rev 1223) +++ trunk/crossfire/src/cfeditor/map/MapControl.java 2006-12-23 14:07:07 UTC (rev 1224) @@ -520,12 +520,7 @@ } } - /** - * Check if the coordinates posx, posy are valid (located within the - * borders of the map). - * @param pos coordinate to check - * @return true if this point is located within the map boundaries - */ + /* {@inheritDoc} */ public boolean isPointValid(final Point pos) { return mapModel.isPointValid(pos); } Modified: trunk/daimonin/src/daieditor/map/MapControl.java =================================================================== --- trunk/daimonin/src/daieditor/map/MapControl.java 2006-12-23 13:36:24 UTC (rev 1223) +++ trunk/daimonin/src/daieditor/map/MapControl.java 2006-12-23 14:07:07 UTC (rev 1224) @@ -268,13 +268,7 @@ return mapModel.getMapSize(); } - /** - * Check if the coordinates posx, posy are valid (located within the - * borders of the map). - * @param pos the x-coordinate - * @return <code>true</code> if this point is located within the map - * boundaries - */ + /** {@inheritDoc} */ public boolean isPointValid(final Point pos) { return mapModel.isPointValid(pos); } Modified: trunk/src/app/net/sf/gridarta/map/MapControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/map/MapControl.java 2006-12-23 13:36:24 UTC (rev 1223) +++ trunk/src/app/net/sf/gridarta/map/MapControl.java 2006-12-23 14:07:07 UTC (rev 1224) @@ -1,5 +1,7 @@ package net.sf.gridarta.map; +import java.awt.Point; + /** * Currently nothing more than a marker interface for unification. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> @@ -19,4 +21,13 @@ */ MapModel getMapModel(); + /** + * Check if the coordinate is valid (located within the borders of the + * map). + * @param pos the coordinate to check + * @return <code>true</code> if this point is located within the map + * boundaries + */ + boolean isPointValid(final Point pos); + } // interface MapControl This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |