モバイルの素

クラス Bullets

java.lang.Object
  上位を拡張 Bullets

public class Bullets
extends java.lang.Object

弾丸リスト


メソッドの概要
 int add(int ix, int iy, int idir)
          弾追加
 boolean hittest(Ship dst)
          当り判定
 void init()
          リストの初期化処理
 void paint(Graphics g)
          描画処理
 void proceed(long elapsed)
          定時処理
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

init

public void init()
リストの初期化処理


add

public int add(int ix,
               int iy,
               int idir)
弾追加

パラメータ:
ix - 開始X位置
iy - 開始Y位置
idir - 方角

proceed

public void proceed(long elapsed)
定時処理

パラメータ:
elapsed - 経過時間(msec)

paint

public void paint(Graphics g)
描画処理

パラメータ:
g - 描画対象Graphicsクラス

hittest

public boolean hittest(Ship dst)
当り判定

パラメータ:
dst - 対象オブジェクト
戻り値:
判定結果

モバイルの素