system
クラス Bomb

java.lang.Object
  上位を拡張 system.Bomb

public final class Bomb
extends java.lang.Object

爆弾のクラス プレイヤーは,GameInfoのgetBombList()などで取得します


コンストラクタの概要
Bomb(int MASTER_ID, int FIRE_LENGTH, int count, int x, int y)
          設置主,火力,爆発までのターン数,座標を指定してインスタンスを生成します
 
メソッドの概要
 int getCount()
          爆弾が爆発するまでの残りターン数を返します
 java.util.List<Point> getFireArea()
          爆弾の爆風が及んでいる座標のリスト返します 爆発していないときは空のリストを返します
 int getFireLength()
          爆弾の火柱の長さを返します
 int getMasterID()
          爆弾の設置主のIDを返します
 Point getPoint()
          爆弾の座標をPoint型で返します
 java.util.List<Point> getPotentialFireArea()
          周りに障害物がないとして爆発したときの爆風の座標リストを返します
 java.util.List<Point> getPotentialFireArea(Field field)
          与えられたフィールドの状況で爆発した場合の爆風の座標リストを返します
 int getX()
          爆弾のx座標を返します
 int getY()
          爆弾のy座標を返します
 boolean isAt(int x, int y)
          指定した座標にその爆弾があるかどうかを返します
 boolean isAt(Point point)
           
 boolean isBursting()
          爆発状態かどうかを返します
 boolean isFiringAt(int x, int y)
          指定した座標が火柱であるかどうかを返します
 boolean isFiringAt(Point point)
           
 boolean willBurst()
          次に爆発するかどうかを返します
 boolean willDisappear()
          次に消滅するかどうかを返します
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Bomb

public Bomb(int MASTER_ID,
            int FIRE_LENGTH,
            int count,
            int x,
            int y)
設置主,火力,爆発までのターン数,座標を指定してインスタンスを生成します

パラメータ:
MASTER_ID -
FIRE_LENGTH -
count -
x -
y -
メソッドの詳細

getCount

public int getCount()
爆弾が爆発するまでの残りターン数を返します

戻り値:
int

getX

public int getX()
爆弾のx座標を返します

戻り値:

getY

public int getY()
爆弾のy座標を返します

戻り値:

getPoint

public Point getPoint()
爆弾の座標をPoint型で返します

戻り値:

getFireArea

public java.util.List<Point> getFireArea()
爆弾の爆風が及んでいる座標のリスト返します 爆発していないときは空のリストを返します

戻り値:

getMasterID

public int getMasterID()
爆弾の設置主のIDを返します

戻り値:

isBursting

public boolean isBursting()
爆発状態かどうかを返します

戻り値:

willBurst

public boolean willBurst()
次に爆発するかどうかを返します

戻り値:

willDisappear

public boolean willDisappear()
次に消滅するかどうかを返します

戻り値:

isFiringAt

public boolean isFiringAt(int x,
                          int y)
指定した座標が火柱であるかどうかを返します

パラメータ:
x -
y -
戻り値:

isFiringAt

public boolean isFiringAt(Point point)

getPotentialFireArea

public java.util.List<Point> getPotentialFireArea()
周りに障害物がないとして爆発したときの爆風の座標リストを返します

戻り値:

getPotentialFireArea

public java.util.List<Point> getPotentialFireArea(Field field)
与えられたフィールドの状況で爆発した場合の爆風の座標リストを返します

パラメータ:
field -
戻り値:

isAt

public boolean isAt(int x,
                    int y)
指定した座標にその爆弾があるかどうかを返します

パラメータ:
x -
y -
戻り値:

isAt

public boolean isAt(Point point)

getFireLength

public int getFireLength()
爆弾の火柱の長さを返します

戻り値: