モバイルの素

クラス Debs

java.lang.Object
  上位を拡張 Debs

public class Debs
extends java.lang.Object

デブリリスト管理クラス


コンストラクタの概要
Debs(Ship t)
          コンストラクタ
 
メソッドの概要
 void add(int type)
          デブリ追加
 boolean hittest(BaseObj dst)
          当り判定
 int hittest(Bullets dst)
          弾当り判定
 void init()
          初期化処理
 boolean isEmpty()
          空きがあるかどうか調査
 void paint(Graphics g)
          描画処理
 void proceed(long elapsed)
          定時間隔処理
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Debs

public Debs(Ship t)
コンストラクタ

パラメータ:
t - 自機オブジェクト
メソッドの詳細

init

public void init()
初期化処理


add

public void add(int type)
デブリ追加

パラメータ:
type - 追加するデブリ種別

isEmpty

public boolean isEmpty()
空きがあるかどうか調査


proceed

public void proceed(long elapsed)
定時間隔処理

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

paint

public void paint(Graphics g)
描画処理

パラメータ:
g - 描画対象オブジェクト

hittest

public boolean hittest(BaseObj dst)
当り判定

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

hittest

public int hittest(Bullets dst)
弾当り判定

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

モバイルの素