com.brantem.engine
Class DuelEngine

java.lang.Object
  extended bycom.golden.gamedev.object.Background
      extended bycom.golden.gamedev.object.background.ParallaxBackground
          extended bycom.brantem.engine.DuelEngine
All Implemented Interfaces:
java.io.Serializable

public class DuelEngine
extends com.golden.gamedev.object.background.ParallaxBackground

Class yang mengolah latar belakang, memantau arah hadap pemain, serta tombol kombinasi berdasarkan arah hadap pemain, dan batas gerak pemain antara pemain dan layar

Version:
1.0
Author:
Elvino
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.golden.gamedev.object.Background
screen
 
Constructor Summary
DuelEngine(BattleEngine battleEngine, com.golden.gamedev.object.Background[] backgrounds)
          Pembuatan class DuelEngine
 
Method Summary
 void render(java.awt.Graphics2D graphics2D)
          Tampilkan perubahan
 void restart()
          Inisialisasi ulang, untuk ronde selanjutanya
 void update(long time)
          Update perubahan yang ada
 
Methods inherited from class com.golden.gamedev.object.background.ParallaxBackground
getParallaxBackground, setLocation, setParallaxBackground
 
Methods inherited from class com.golden.gamedev.object.Background
getClip, getDefaultBackground, getHeight, getWidth, getX, getY, move, render, setClip, setClip, setSize, setToCenter, setToCenter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuelEngine

public DuelEngine(BattleEngine battleEngine,
                  com.golden.gamedev.object.Background[] backgrounds)
Pembuatan class DuelEngine

Parameters:
battleEngine - Class konfigurasi pertarungan
backgrounds - Array of background
See Also:
Background, BattleEngine
Method Detail

update

public void update(long time)
Update perubahan yang ada

Parameters:
time - Waktu yang berjalan

render

public void render(java.awt.Graphics2D graphics2D)
Tampilkan perubahan

Parameters:
graphics2D - Mesin grafik
See Also:
Graphics2D

restart

public void restart()
Inisialisasi ulang, untuk ronde selanjutanya