com.brackeen.javagamebook.test
Class GameCore3D
java.lang.Object
com.brackeen.javagamebook.test.GameCore
com.brackeen.javagamebook.test.GameCore3D
- Direct Known Subclasses:
- ShooterCore
- public abstract class GameCore3D
- extends GameCore
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameCore3D
public GameCore3D()
init
public void init(java.awt.DisplayMode[] modes)
- Description copied from class:
GameCore
- Sets full screen mode and initiates and objects.
- Overrides:
init
in class GameCore
createPolygons
public abstract void createPolygons()
createPolygonRenderer
public void createPolygonRenderer()
setViewBounds
public void setViewBounds(int width,
int height)
- Sets the view bounds, centering the view on the screen.
update
public void update(long elapsedTime)
- Description copied from class:
GameCore
- Updates the state of the game/animation based on the
amount of elapsed time that has passed.
- Overrides:
update
in class GameCore
updateWorld
public void updateWorld(long elapsedTime)
draw
public void draw(java.awt.Graphics2D g)
- Description copied from class:
GameCore
- Draws to the screen. Subclasses must override this
method.
- Specified by:
draw
in class GameCore
drawPolygons
public void drawPolygons(java.awt.Graphics2D g)
drawOverlays
public void drawOverlays(java.awt.Graphics2D g)
addOverlay
public void addOverlay(Overlay overlay)
removeOverlay
public void removeOverlay(Overlay overlay)
calcFrameRate
public void calcFrameRate()