Package | Description |
---|---|
com.BombingGames.WurfelEngine.Core | |
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 |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Camera> |
GameView.getCameras()
Returns a camera.
|
Modifier and Type | Method and Description |
---|---|
protected void |
GameView.addCamera(Camera camera)
Add a camera.
|
void |
Camera.render(GameView view,
Camera camera)
Renders the viewport
|
float |
GameView.screenXtoView(int screenX,
Camera camera)
Reverts the perspective and transforms it into a coordiante which can be used in the game logic.
|
float |
GameView.screenYtoView(int screenY,
Camera camera)
Reverts the projection and transforms it into a coordinate which can be used in the game logic.
|
int |
GameView.viewToScreenX(int x,
Camera camera)
Not a homomorphism, which means f(a*b) !
|
int |
GameView.viewToScreenY(int y,
Camera camera)
Not a homomorphism, which means f(a*b) !
|
Modifier and Type | Method and Description |
---|---|
Camera |
PlayerWithWeapon.getCamera() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGameObject.render(GameView view,
Camera camera)
Draws an object in the color of the light engine and with the lightlevel.
|
void |
EntityShadow.render(GameView view,
Camera camera) |
void |
RenderBlock.render(GameView view,
Camera camera) |
void |
AbstractGameObject.render(GameView view,
Camera camera,
com.badlogic.gdx.graphics.Color color)
Draws an object if it is not hidden and not clipped.
|
void |
RenderBlock.renderSide(GameView view,
Camera camera,
AbstractPosition coords,
Side side,
boolean staticShade)
Render a side of a block at the position of the coordinates.
|
void |
PlayerWithWeapon.setCamera(Camera camera)
Set the camera which is renderin the player to calculate the aiming.
|
Constructor and Description |
---|
Explosion(int radius,
byte damage,
Camera camera) |
Modifier and Type | Method and Description |
---|---|
Intersection |
Point.raycast(com.badlogic.gdx.math.Vector3 direction,
float radius,
Camera camera,
boolean onlySolid)
Trace a ray through the map until ray hits non air block.
|
void |
Minimap.setCamera(Camera camera)
Set a camera which will be represented on the minimap.
|
Constructor and Description |
---|
Minimap(Camera camera,
int outputX,
int outputY)
Create a minimap.
|