congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IGraphicsGrid.getLandscapeTypeAt
Code IndexAdd Tabnine to your IDE (free)

How to use
getLandscapeTypeAt
method
in
jsettlers.common.map.IGraphicsGrid

Best Java code snippets using jsettlers.common.map.IGraphicsGrid.getLandscapeTypeAt (Showing top 3 results out of 315)

origin: jsettlers/settlers-remake

/**
 * Gets the landscape at a given position.
 *
 * @param x
 *            x
 * @param y
 *            y
 * @return The landscape type.
 */
public ELandscapeType getLandscape(int x, int y) {
  return map.getLandscapeTypeAt(x, y);
}
origin: jsettlers/settlers-remake

private Color getColorForArea(IGraphicsGrid map, int mapminX, int mapminY, int mapmaxX, int mapmaxY) {
  int centerx = (mapmaxX + mapminX) / 2;
  int centery = (mapmaxY + mapminY) / 2;
  return map.getLandscapeTypeAt(centerx, centery).color;
}
origin: jsettlers/settlers-remake

if (player >= 0 && !map.getLandscapeTypeAt(x, y).isBlocking) {
  Color playerColor = context.getPlayerColor(player);
jsettlers.common.mapIGraphicsGridgetLandscapeTypeAt

Popular methods of IGraphicsGrid

  • getDebugColorAt
  • getHeight
  • getHeightAt
  • getMapObjectsAt
    Gets the first map object that is placed on the given position. There may be more map objects that c
  • getMovableAt
  • getPartitionData
    Gets the current data and settings of the partition at the given position.
  • getPlayerIdAt
  • getVisibleStatus
  • getWidth
  • isBorder
  • isBuilding
    Returns true if the given position is covered by the blocked area of a building.
  • setBackgroundListener
    This method can be used to set a IGraphicsBackgroundListener to this IGraphicsGrid.
  • isBuilding,
  • setBackgroundListener

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now