@@ -235,7 +235,6 @@ public Position getScreenPosition() {
235235 return new Position (gameData .screenX (), gameData .screenY ());
236236 }
237237
238- //TODO
239238 public void setScreenPosition (final int x , final int y ) {
240239 addCommand (SetScreenPosition .value , x , y );
241240 }
@@ -261,23 +260,31 @@ public void enableFlag(final Flag flag) {
261260 }
262261
263262 //TODO
264- // public List<Unit> getUnitsOnTile(int tileX, int tileY);
265- //
266- // public List<Unit> getUnitsOnTile(TilePosition tile);
267- //
263+ public Set <Unit > getUnitsOnTile (final int tileX , final int tileY ) {
264+ return new HashSet <>();
265+ }
266+
267+ public Set <Unit > getUnitsOnTile (final TilePosition tile ) {
268+ return getUnitsOnTile (tile .x , tile .y );
269+ }
270+
268271 //TODO
269- public Set <Unit > getUnitsInRectangle (int left , int top , int right , int bottom , final UnitFilter filter ) {
272+ public Set <Unit > getUnitsInRectangle (final int left , final int top , final int right , final int bottom , final UnitFilter filter ) {
270273 return new HashSet <>();
271274 }
272275
273276 public Set <Unit > getUnitsInRectangle (final Position leftTop , final Position rightBottom , final UnitFilter filter ) {
274277 return getUnitsInRectangle (leftTop .x , leftTop .y , rightBottom .x , rightBottom .y , filter );
275278 }
276- //
277- //
278- // public List<Unit> getUnitsInRadius(int x, int y, int radius);
279- //
280- // public List<Unit> getUnitsInRadius(Position center, int radius);
279+
280+ //TODO
281+ public Set <Unit > getUnitsInRadius (final int x , final int y , final int radius ) {
282+ return new HashSet <>();
283+ }
284+
285+ public Set <Unit > getUnitsInRadius (final Position center , final int radius ) {
286+ return getUnitsInRadius (center .x , center .y , radius );
287+ }
281288
282289 public int mapWidth () {
283290 return gameData .mapWidth ();
@@ -1057,7 +1064,7 @@ public boolean hasPath(final Position source, final Position destination) {
10571064 // public void setGUI(bool enabled);
10581065 // public int getLastEventTime();
10591066 // public boolean setMap(final String cstr_mapFileName);
1060- // public boolean setRevealAll();return true;
1067+ // public boolean setRevealAll();
10611068 // public boolean setRevealAll(boolean reveal);
10621069
10631070 public void setTextSize () {
@@ -1093,25 +1100,24 @@ public Region getRegionAt(final Position position) {
10931100 return getRegionAt (position .x , position .y );
10941101 }
10951102
1096- /*
1097- public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition, int maxRange);
1098-
1099- public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition);
1100-
1101- public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition, int maxRange, boolean creep);
1102-
1103- public int getDamageFrom(UnitType fromType, UnitType toType, Player fromPlayer);
1104-
1105- public int getDamageFrom(UnitType fromType, UnitType toType);
1106-
1107- public int getDamageFrom(UnitType fromType, UnitType toType, Player fromPlayer, Player toPlayer);
1108-
1109- public int getDamageTo(UnitType toType, UnitType fromType, Player toPlayer);
1110-
1111- public int getDamageTo(UnitType toType, UnitType fromType);
11121103
1113- public int getDamageTo(UnitType toType, UnitType fromType, Player toPlayer, Player fromPlayer);
1114- */
1104+ // public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition, int maxRange);
1105+ //
1106+ // public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition)
1107+ //
1108+ // public TilePosition getBuildLocation(UnitType type, TilePosition desiredPosition, int maxRange, boolean creep);
1109+ //
1110+ // public int getDamageFrom(UnitType fromType, UnitType toType, Player fromPlayer);
1111+ //
1112+ // public int getDamageFrom(UnitType fromType, UnitType toType);
1113+ //
1114+ // public int getDamageFrom(UnitType fromType, UnitType toType, Player fromPlayer, Player toPlayer);
1115+ //
1116+ // public int getDamageTo(UnitType toType, UnitType fromType, Player toPlayer);
1117+ //
1118+ // public int getDamageTo(UnitType toType, UnitType fromType);
1119+ //
1120+ // public int getDamageTo(UnitType toType, UnitType fromType, Player toPlayer, Player fromPlayer);
11151121
11161122 //Since 4.2.0
11171123 public int getRandomSeed () {
0 commit comments