Uses of Class
com.bombinggames.wurfelengine.core.map.Coordinate
-
Packages that use Coordinate Package Description com.bombinggames.wurfelengine.core.gameobjects Game Objects are objects like entities and block which can be found in the map.com.bombinggames.wurfelengine.core.map com.bombinggames.wurfelengine.core.map.rendering com.bombinggames.wurfelengine.extension.shooting com.bombinggames.wurfelengine.mapeditor -
-
Uses of Coordinate in com.bombinggames.wurfelengine.core.gameobjects
Methods in com.bombinggames.wurfelengine.core.gameobjects that return Coordinate Modifier and Type Method Description Coordinate
AbstractEntity. getCoord()
abstract Coordinate
AbstractGameObject. getCoord()
not copy saveCoordinate
Cursor. getCoordInNormalDirection()
if at ground does not move up -
Uses of Coordinate in com.bombinggames.wurfelengine.core.map
Subclasses of Coordinate in com.bombinggames.wurfelengine.core.map Modifier and Type Class Description class
PfNode
Methods in com.bombinggames.wurfelengine.core.map that return Coordinate Modifier and Type Method Description Coordinate
Coordinate. add(int[] vector)
Add a vector to the coordinates.Coordinate
Coordinate. add(int x, int y, int z)
Add a vector to the coordinates.Coordinate
Coordinate. add(com.badlogic.gdx.math.Vector3 vector)
Coordinate
Coordinate. cpy()
Coordinate
Coordinate. getCoord()
Coordinate
Point. getCoord()
Coordinate
Position. getCoord()
May not be copy safe.Coordinate
AbstractBlockLogicExtension. getPosition()
This method must be named "getPosition" so that this method can implement other interfaces using this API signaturestatic Coordinate
Coordinate. getShared()
Coordinate
Coordinate. goToNeighbour(int neighbourSide)
Goes to the the neighbour with the specific side.Coordinate
Coordinate. set(int x, int y, int z)
Coordinate
Coordinate. set(Coordinate coord)
Coordinate
Coordinate. setFromPoint(Point from)
avoids a new instance.Coordinate
Coordinate. toCoord()
Coordinate
Point. toCoord()
returns coordinate aquivalent.Coordinate
Position. toCoord()
Calculates it and creates new instance if not already in correct format then returns copy of itself.Methods in com.bombinggames.wurfelengine.core.map with parameters of type Coordinate Modifier and Type Method Description com.badlogic.gdx.ai.pfa.DefaultGraphPath<PfNode>
Map. findPath(Coordinate start, Coordinate goal)
int
Map. getBlock(Coordinate coord)
id, value and healthbyte
Map. getBlockId(Coordinate coord)
If the block can not be found returns null pointer.Chunk
Map. getChunkContaining(Coordinate coord)
get the chunk where the coordinates are on.java.util.LinkedList<AbstractEntity>
Map. getEntitysOnCoord(Coordinate coord)
Get every entity on a coord.<T> java.util.LinkedList<T>
Map. getEntitysOnCoord(Coordinate coord, java.lang.Class<T> filter)
Get every entity on a coord of the wanted typebyte
Map. getHealth(Coordinate coord)
AbstractBlockLogicExtension
Chunk. getLogic(Coordinate coord)
Get the logic to a logicblock.AbstractBlockLogicExtension
Map. getLogic(Coordinate coord)
boolean
Chunk. hasCoord(Coordinate coord)
Check if the chunk has the coordinate inside.static Intersection
Intersection. intersect(Coordinate target, Point p, com.badlogic.gdx.math.Vector3 dir)
performs a line-box intersection.
The result are outside the coordiante grid field, so they are forced in it.boolean
Coordinate. isInCube(Coordinate x1, Coordinate x2)
Checks wether the coordinate is in a cube spanning by both coordinates.void
Map. loadChunk(Coordinate coord)
loads a chunk from disk if not already loaded.static AbstractBlockLogicExtension
AbstractBlockLogicExtension. newLogicInstance(byte blockId, byte value, Coordinate coord)
Creates a new logic instance if registered.Coordinate
Coordinate. set(Coordinate coord)
void
Chunk. setBlock(Coordinate coord, byte id)
Almost lowest level method to set a block in the map.void
Chunk. setBlock(Coordinate coord, byte id, byte value)
Almost lowest level method to set a block in the map.void
Chunk. setBlock(Coordinate coord, byte id, byte value, byte health)
Almost lowest level method to set a block in the map.void
Map. setBlock(Coordinate coord, byte id)
Set a block at this coordinate.void
Map. setBlock(Coordinate coord, byte id, byte value)
Set id and value at a coordinate in the map.void
Map. setBlock(Coordinate coord, int block)
Set id, value and health at a coordinate in the map.Point
Point. setFromCoord(Coordinate coord)
Set x,y,z based on a coordinate.void
Chunk. setHealth(Coordinate coord, byte health)
Set health of a cell.void
Map. setHealth(Coordinate coord, byte health)
Set health of a cell.void
Chunk. setValue(Coordinate coord, byte value)
void
Map. setValue(Coordinate coord, byte value)
Constructors in com.bombinggames.wurfelengine.core.map with parameters of type Coordinate Constructor Description Coordinate(Coordinate coord)
Creates a new coordinate from an existing coordinatePfNode(Coordinate coord)
PfNode(Coordinate coord, int index)
-
Uses of Coordinate in com.bombinggames.wurfelengine.core.map.rendering
Methods in com.bombinggames.wurfelengine.core.map.rendering that return Coordinate Modifier and Type Method Description Coordinate
RenderCell. getCoord()
Coordinate
RenderCell. getPosition()
Methods in com.bombinggames.wurfelengine.core.map.rendering with parameters of type Coordinate Modifier and Type Method Description RenderCell
RenderChunk. getCell(Coordinate coord)
RenderCell
RenderStorage. getCell(Coordinate coord)
If the cell can not be found returnsRenderChunk.CELLOUTSIDE
.RenderChunk
RenderStorage. getChunk(Coordinate coord)
get the chunk where the coordinates are on.boolean
RenderStorage. isClipped(Coordinate coords)
get if a coordinate is clippedRenderCell
RenderStorage. refreshCell(Coordinate coord, byte id, byte value)
creates a newRenderCell
instance at the coordinatevoid
RenderStorage. setLightFlag(Coordinate coord)
Marks this block as "dirty".void
RenderCell. setPosition(Coordinate coord)
keeps referenceRenderCell
RenderCell. spawn(RenderStorage rS, Coordinate coord)
places the object on the map. -
Uses of Coordinate in com.bombinggames.wurfelengine.extension.shooting
Methods in com.bombinggames.wurfelengine.extension.shooting with parameters of type Coordinate Modifier and Type Method Description void
Bullet. ignoreCoord(Coordinate coord)
-
Uses of Coordinate in com.bombinggames.wurfelengine.mapeditor
Methods in com.bombinggames.wurfelengine.mapeditor with parameters of type Coordinate Modifier and Type Method Description void
CursorInfo. updateFrom(int block, Coordinate coord)
-