com.brackeen.javagamebook.test
Class GameCore3D

java.lang.Object
  extended bycom.brackeen.javagamebook.test.GameCore
      extended bycom.brackeen.javagamebook.test.GameCore3D
Direct Known Subclasses:
ShooterCore

public abstract class GameCore3D
extends GameCore


Constructor Summary
GameCore3D()
           
 
Method Summary
 void addOverlay(Overlay overlay)
           
 void calcFrameRate()
           
 void createPolygonRenderer()
           
abstract  void createPolygons()
           
 void draw(java.awt.Graphics2D g)
          Draws to the screen.
 void drawOverlays(java.awt.Graphics2D g)
           
 void drawPolygons(java.awt.Graphics2D g)
           
 void init(java.awt.DisplayMode[] modes)
          Sets full screen mode and initiates and objects.
 void removeOverlay(Overlay overlay)
           
 void setViewBounds(int width, int height)
          Sets the view bounds, centering the view on the screen.
 void update(long elapsedTime)
          Updates the state of the game/animation based on the amount of elapsed time that has passed.
 void updateWorld(long elapsedTime)
           
 
Methods inherited from class com.brackeen.javagamebook.test.GameCore
gameLoop, init, lazilyExit, loadImage, run, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameCore3D

public GameCore3D()
Method Detail

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()