|
モバイルの素 | |||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectBaseObj
Ship
public class Ship
自機クラス
メソッドの概要 | |
---|---|
void |
init(int ix,
int iy)
初期化 |
void |
paint(Graphics g)
描画処理 |
int |
reducePower(int percent)
体力減処理 |
void |
setColorByShipPower(Graphics g)
残体力によって自機の色を変化させる(未使用) |
クラス BaseObj から継承されたメソッド |
---|
dirto, distanceto, getdir, getspeed, getx, gety, hittest, init, proceed, rotate, setxy |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public void init(int ix, int iy)
ix
- 開始X位置iy
- 開始Y位置public int reducePower(int percent)
percent
- 減算量
public void setColorByShipPower(Graphics g)
g
- 描画対象オブジェクトpublic void paint(Graphics g)
g
- 描画対象オブジェクト
|
モバイルの素 | |||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |