Uses of Class
ch.aplu.android.Location

Packages that use Location
ch.aplu.android Package of the JDroidLib framework for developing Android applications with a focus on gaming and simulations. 
ch.aplu.jcardgame Addon package of the JDroidLib framework for developing card game applications. 
 

Uses of Location in ch.aplu.android
 

Methods in ch.aplu.android that return Location
 Location Location.clone()
          Returns a new location with duplicated coordinates.
 Location Location.getAdjacentLocation(double direction)
          Same as getAdjacentLocation(double direction, 5).
 Location Location.getAdjacentLocation(double direction, int distance)
          Gets the adjacent location of a cell where a displacement arrow from the current center of the current cell with given direction and length = (distance + epsilon) * cellSize ends up.
 Location Location.getAdjacentLocation(Location.CompassDirection compassDir)
          Same as getAdjacentLocation(double direction, 5) with given compass direction.
 Location Location.getAdjacentLocation(Location.CompassDirection compassDir, int distance)
          Same as getAdjacentLocation(double direction, int distance) with given compass direction.
 Location GGMaze.getExitLocation()
          Returns the location of the exit cell.
 Location Actor.getLocation()
          Returns the current location (horizontal and vertical coordinates).
 Location Actor.getLocationStart()
          Returns the start location (horizontal and vertical coordinates).
 Location Location.getNeighbourLocation(double direction)
          Gets one of the 8 surrounding cells in given direction 45 degrees wide.
 Location Location.getNeighbourLocation(Location.CompassDirection compassDir)
          Gets one of the 8 surrounding cells in the given compass directions.
 Location Actor.getNextMoveLocation()
          Returns the target location of the next move().
 Location GameGrid.getRandomEmptyLocation()
          Returns an empty random location within the game grid.
 Location GameGrid.getRandomLocation()
          Returns a random location within the game grid.
 Location GGMaze.getStartLocation()
          Returns the location of the entry cell.
 Location GameGrid.getTouchLocation()
          Returns the cell location of the cell under the touch position or null, if the game grid is not visible.
 Location GameGrid.toLocation(int x, int y)
          Returns the location (cell indices) of the cell where the point with given coordinates resides.
 Location GameGrid.toLocation(android.graphics.Point pt)
          Returns the location (cell indices) of the cell where the given point resides.
 Location GameGrid.toLocationInGrid(int x, int y)
          Returns the location (cell indices) of the cell where the point with given coordinates resides.
 Location GameGrid.toLocationInGrid(android.graphics.Point pt)
          Returns the location (cell indices) of the cell where the given point resides.
 Location Location.toReal()
          Returns a new location that is zoomed by the current GameGrid's zoom factor.
 Location Location.toVirtual()
          Returns a new location that is unzoomed by the current GameGrid's zoom factor.
 

Methods in ch.aplu.android that return types with arguments of type Location
 java.util.ArrayList<Location> Actor.getCollisionTiles()
          Returns a list of tile locations that are collision candidates.
 java.util.ArrayList<Location> GameGrid.getDiagonalLocations(Location location, boolean up)
          Returns a list of all grid locations that are on the diagonal line through the given location.
 java.util.ArrayList<Location> GameGrid.getEmptyLocations()
          Returns a list of all locations not occupied by actors.
 java.util.ArrayList<Location> GameGrid.getLineLocations(Location loc1, Location loc2, boolean interjacent)
          Returns a list of cell grid locations whose cell centers are exactly on the the line through the centers of loc1 and loc1.
 java.util.ArrayList<Location> Location.getNeighbourLocations(double distance)
          Returns all locations in a specified distance.
 java.util.ArrayList<Location> GameGrid.getOccupiedLocations()
          Returns a list of all locations occupied by actors.
 

Methods in ch.aplu.android with parameters of type Location
 void ToolBar.add(Location barLocation)
          Adds the tool bar item actors to the card game window at the given location (upper left corner of first item).
 void GameGrid.addActor(Actor actor, Location location)
          Same as addActor(Actor actor, Location location, double direction) with direction = 0 (to east).
 void GameGrid.addActor(Actor actor, Location location, double direction)
          Adds a new actor at given starting position with given moving direction to the scene.
 void GameGrid.addActor(Actor actor, Location location, Location.CompassDirection compassDir)
          Same as addActor(Actor actor, Location location, double direction) with compass direction.
 void GameGrid.addActorNoRefresh(Actor actor, Location location)
          Same as addActor(Actor actor, Location location), but the game grid window is not refreshed automatically.
 void GameGrid.addActorNoRefresh(Actor actor, Location location, double direction)
          Same as addActor(Actor actor, Location location, double direction), but the game grid window is not refreshed automatically.
 void Actor.addCollisionTile(Location location)
          Registers a tile location that becomes a collision candidate, e.g. that is checked for collisions in every simulation cycle.
 void ToolBar.addNoRefresh(Location barLocation)
          Same as add(Location barLocation), but does not refresh the game grid.
 int Actor.collide(Actor actor, Location location)
          Empty implementation of a GGTileCollisionListener called when the an actor collides with a tile.
 int GGTileCollisionListener.collide(Actor actor, Location location)
          Event callback method called when actors and tiles are colliding.
 void GGBackground.fillCell(Location location, int fillColor)
          Fills a cell with given color.
 void GGBackground.fillCell(Location location, int fillColor, boolean boundary)
          Fills a cell with given color.
 Location.CompassDirection Location.get4CompassDirectionTo(Location location)
          Returns the compass direction restricted to 4 sectors from the current location the given location.
 java.util.ArrayList<Actor> GameGrid.getActorsAt(Location location)
          Returns all actors at the given location.
 java.util.ArrayList<Actor> GameGrid.getActorsAt(Location location, java.lang.Class clazz)
          Returns all actors of given type in given cell.
 android.graphics.Point GGTileMap.getCenter(Location loc)
          Returns the current center of tile at given map location with respect to the playground coordinate system (origin at upper left vertex, x-coordinate to the left, y-coordinate downwards).
 int GGBackground.getColor(Location location)
          Returns the color of the pixel of the background at given cell's center.
 Location.CompassDirection Location.getCompassDirectionTo(Location location)
          Returns the compass direction restricted to 8 sectors from the current location the given location.
 java.util.ArrayList<Location> GameGrid.getDiagonalLocations(Location location, boolean up)
          Returns a list of all grid locations that are on the diagonal line through the given location.
 double Location.getDirectionTo(Location location)
          Returns the direction from the current location to the given location.
 int Location.getDistanceTo(Location location)
          Returns the distance from the current location to the given location (in cellsize units, rounded to integer).
 java.util.ArrayList<Location> GameGrid.getLineLocations(Location loc1, Location loc2, boolean interjacent)
          Returns a list of cell grid locations whose cell centers are exactly on the the line through the centers of loc1 and loc1.
 int GameGrid.getNumberOfActorsAt(Location location)
          Returns number of actors at specified location.
 int GameGrid.getNumberOfActorsAt(Location location, java.lang.Class clazz)
          Returns number of actors of specified class at specified location.
 Actor GameGrid.getOneActorAt(Location location)
          Returns the first actor in the actor's list at the specific location.
 Actor GameGrid.getOneActorAt(Location location, java.lang.Class clazz)
          Returns the first actor of specified class in the actor's list at the specific location.
 android.graphics.Point GGTileMap.getUpperLeftVertex(Location loc)
          Returns the current coordinates of the upper left vertex of tile at given map location with respect to the playground coordinate system (origin at upper left vertex, x-coordinate to the left, y-coordinate downwards).
 boolean GameGrid.isAtBorder(Location location)
          Returns true, if the given cell location is at the grid border.
 boolean GameGrid.isEmpty(Location location)
          Returns true, if there is no actor at specified location.
 boolean GameGrid.isInGrid(Location location)
          Returns true, if the given cell location is within the grid.
 boolean GameGrid.isTileColliding(Actor a, Location location)
          Checks if the given actor and the tile at the given tile location are colliding.
 boolean GGTileMap.isTileCollisionEnabled(Location location)
          Returns true, if collision notification with the given tiles is enabled.
 boolean GGMaze.isWall(Location location)
          Returns true, if the cell with given cell location is a wall
 void Actor.nearBorder(Actor actor, Location location)
          Empty implementation of a BorderListener called when the actor is set into a border cell.
 void GGBorderListener.nearBorder(Actor actor, Location location)
          Event callback method called when the actor enters a border cell.
 int GameGrid.removeActorsAt(Location location)
          Removes all actors at the specified location, so that act() is not called any more.
 int GameGrid.removeActorsAt(Location location, java.lang.Class clazz)
          Removes all actors from the specified class at the specified location, so that act() is not called any more.
 void Actor.rotate(Location centerLoc, double angle)
          Rotates the actor with given rotation center location by the given angle.
 void GGTileMap.setCollisionCircle(Location location, android.graphics.Point center, int radius)
          Selects the circle (in pixel units) relative to the tile center that is used for collision detection.
 void GGTileMap.setCollisionLine(Location location, android.graphics.Point startPoint, android.graphics.Point endPoint)
          Selects the line segment (in pixel units) relative to the tile that is used for collision detection.
 void GGTileMap.setCollisionRectangle(Location location, android.graphics.Point center, int width, int height)
          Selects the rectangle (in pixel units) relative to the tile that is used for collision detection.
 void GGTileMap.setCollisionSpot(Location location, android.graphics.Point spot)
          Selects the hot spot relative to the sprite image that is used for collision detection.
 void GGTileMap.setImage(java.lang.String imagePath, Location location)
          Sets the tile image of the tile with given map location.In order the image fits exactly on the tile, its size in number of pixels should be tileHeight x tileWidth given when constructing the tile map.
 void Actor.setLocation(Location location)
          Assigns a new current location.
 void GGTextField.setLocation(Location location)
          Sets the location attribute.
 void ToolBar.setLocation(Location barLocation)
          Moves the current tool bar at the specified real location.
 void GGTileMap.setTileCollisionEnabled(Location location, boolean enable)
          Enable/disable the detection of collisions with the given tile.
 android.graphics.Point GameGrid.toPoint(Location location)
          Returns the x-y-coordinates of the center of the cell with given location (cell indices).
 

Method parameters in ch.aplu.android with type arguments of type Location
 void Actor.addCollisionTiles(java.util.ArrayList<Location> locationList)
          Registers all tile locations in a list as collision candidates.
 

Constructors in ch.aplu.android with parameters of type Location
GGProgressBar(GameGrid gg, Location loc, int width, int height)
          Creates a horizontal progress bar with default properties.
GGProgressBar(GameGrid gg, Location loc, int width, int height, boolean isHorizontal)
          Creates a horizontal or vertical progress bar with default properties.
GGTextField(Location location, boolean enableRefresh)
          Creates a GGTextField with standard attributes and no text.
GGTextField(java.lang.String text, Location location, boolean enableRefresh)
          Creates a GGTextField instance with standard attributes.
Location(Location location)
          Constructs a location with the coordinates of the given location.
 

Uses of Location in ch.aplu.jcardgame
 

Methods in ch.aplu.jcardgame that return Location
 Location FanLayout.getCenter()
          Returns the current center.
 Location Hand.getHandLocation()
          Returns a clone of the hand location.
 Location HandLayout.getHandLocation()
          Returns the current hand location.
 Location CardActor.getLocation()
          Returns the current virtual location (horizontal and vertical coordinates).
 Location CardCover.getLocation()
          Returns the current virtual location (horizontal and vertical coordinates).
 Location CardActor.getLocationStart()
          Returns the virtual start location (horizontal and vertical coordinates).
 Location CardCover.getLocationStart()
          Returns the virtual start location (horizontal and vertical coordinates).
 Location TargetArea.getTargetLocation()
          Returns a clone of the current target location.
 

Methods in ch.aplu.jcardgame with parameters of type Location
 void CardAdapter.atTarget(Card card, Location targetLocation)
          Triggered when a card arrives a the target after a card transfer.
 void CardListener.atTarget(Card card, Location targetLocation)
          Triggered when a card arrives a the target after a card transfer.
 void FanLayout.setCenter(Location center)
          Sets the current center to the given center
 void HandLayout.setHandLocation(Location handLocation)
          Sets the current hand location to the given location.
 void CardActor.setLocation(Location location)
          Assigns a new current virtual location.
 void CardCover.setLocation(Location location)
          Assigns a new current virtual location.
 void TargetArea.setTargetLocation(Location targetLocation)
          Sets the target location to the given location.
 void Card.slideToTarget(Location targetLocation, int slideStep)
          Same as slideToTarget(targetLocation, slideStep, blocking) with blocking = true.
 void Card.slideToTarget(Location targetLocation, int slideStep, boolean blocking)
          If the card is added to the GameGrid, handless and visible, moves the card actor from current location to the given location using the given number of steps per GameGrid's simulation cycle.
 void CardCover.slideToTarget(Location targetLocation, int slideStep, boolean onTop, boolean blocking)
          Slides the card cover actor from the current location to the given target location using the given step.
 

Constructors in ch.aplu.jcardgame with parameters of type Location
CardCover(GameGrid gameGrid, Location location, Deck deck, double scaleFactor, double rotationAngle)
          Same as CardCover(gameGrid, location, deck, scaleFactor, rotationAngle, hide) with show = true.
CardCover(GameGrid gameGrid, Location location, Deck deck, double scaleFactor, double rotationAngle, boolean show)
          Creates a transformed card cover actor from the seed actor of the first card in the given deck and adds it at the given location to the given game grid.
ColumnLayout(Location handLocation, int columnHeight)
          Same as ColumnLayout(handLocation, columnHeight, rotationAngle) with rotationAngle = 0.
ColumnLayout(Location handLocation, int columnHeight, double rotationAngle)
          Creates a ColumnLayout instance with given hand location, maximum column height and rotation angle.
FanLayout(Location center, double radius, double startDir, double endDir)
          Creates a FanLayout instance with given center, radius, start direction and end direction.
RowLayout(Location handLocation, int rowWidth)
          Same as RoyLayout(handLocation, rowWidth, rotationAngle) with rotationAngle = 0.
RowLayout(Location handLocation, int rowWidth, double rotationAngle)
          Creates a RowLayout instance with given hand location , maximum row width and rotation angle.
StackLayout(Location handLocation)
          Same as StackLayout(handLocation, rotationAngle) with rotationAngle = 0.
StackLayout(Location handLocation, double rotationAngle)
          Creates a StackLayout instance with given hand location and rotationAngle.
TargetArea(Location targetLocation)
          Sets the attributes for transferring cards.
TargetArea(Location targetLocation, CardOrientation cardOrientation, int slideStep, boolean onTop)
          Sets the attributes for transferring cards.