system
クラス Command

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

public final class Command
extends java.lang.Object

プレイヤーが提出するコマンドのクラス


コンストラクタの概要
Command(Command command)
           
Command(Direction direction, boolean willSetBomb)
          進む方向と,爆弾を置くかどうかをを指定してインスタンスを生成します
 
メソッドの概要
 Direction getDirection()
          コマンドの方向を返します
 boolean willSetBomb()
          コマンドの爆弾設置有無を返します
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Command

public Command(Direction direction,
               boolean willSetBomb)
進む方向と,爆弾を置くかどうかをを指定してインスタンスを生成します

パラメータ:
direction -
willSetBomb -

Command

public Command(Command command)
メソッドの詳細

getDirection

public Direction getDirection()
コマンドの方向を返します

戻り値:

willSetBomb

public boolean willSetBomb()
コマンドの爆弾設置有無を返します

戻り値: