|
モバイルの素 | |||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectBaseObj
Bullet
public class Bullet
発射する弾オブジェクト。 Bulletsクラスにて管理される。
メソッドの概要 | |
---|---|
void |
init(int ix,
int iy,
int idir,
int ispeed)
初期化。 |
void |
paint(Graphics g)
描画処理。 |
void |
proceed(long elapsed)
時間分処理を進める。 |
クラス BaseObj から継承されたメソッド |
---|
dirto, distanceto, getdir, getspeed, getx, gety, hittest, init, rotate, setxy |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public void init(int ix, int iy, int idir, int ispeed)
ix
- 開始X位置iy
- 開始Y位置idir
- 開始方向ispeed
- 速度public void proceed(long elapsed)
BaseObj
内の proceed
elapsed
- 経過時間。public void paint(Graphics g)
g
- 描画対象。
|
モバイルの素 | |||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |