Package trackerModule.sim.tracker.World

Examples of trackerModule.sim.tracker.World.Tile


    if( xTile < 0 || yTile < 0 || xTile >= width || yTile >= height )
      return;
   
    World.This().setTile(xTile, yTile, str);
         
    Tile t = World.This().getLocation(str);
    if( t != null ){
      t.x = xTile;
      t.y = yTile;
    }
  }
View Full Code Here


  private void drawLocations(Graphics g) { 
    Graphics2D g2 = (Graphics2D) g; 
    Integer tileSize = World.This().TILE_SIZE;

    for( String str : World.This().tileMap.keySet() ){
      Tile tile = World.This().tileMap.get(str);
      Integer x = tile.x;
        Integer y = tile.y;
        Integer xSize = tile.width + 60;
        Integer ySize = tile.height + 60;
       
View Full Code Here

   * @return the nearest location
   */
  Tile getNearestLocation(Tile mainTile, String type, ArrayList<String> listNearestPort){
     double dis = 0;
    double prev = 10000000;
    Tile locationtemp = null;
    for( String str : World.This().tileMap.keySet() ){
      Tile tile = World.This().tileMap.get(str);
      boolean b = true;
   
      if( str.equalsIgnoreCase(mainTile.name))
        b = false
  
View Full Code Here

     Unit shipLocation  = ship.get("Location");
    Integer tileSize = World.This().TILE_SIZE;
         
    double dis = 0;
    double prev = 10000000;
    Tile locationtemp = null;
    for( String str : World.This().tileMap.keySet() ){
      Tile tile = World.This().tileMap.get(str);
      boolean b = true;
   
      if( str.equalsIgnoreCase(shipLocation.getData()))
        b = false
 
View Full Code Here

    Integer X = ship.get("X").getDataByInt();
    Integer Y = ship.get("Y").getDataByInt();
    Integer tileSize = World.This().TILE_SIZE;
        
    for( String str : World.This().tileMap.keySet() ){
      Tile tile = World.This().tileMap.get(str);
      
      Integer xLoc = tile.x*tileSize+tileSize/2;
      Integer yLoc = tile.y*tileSize+tileSize/2;
      Integer width = tile.width;
      Integer height = tile.height;
View Full Code Here

TOP

Related Classes of trackerModule.sim.tracker.World.Tile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.