kinugasa.field
クラス FieldMapBuilderStorage

java.lang.Object
  上位を拡張 kinugasa.contents.resource.Storage<FieldMapBuilder>
      上位を拡張 kinugasa.field.FieldMapBuilderStorage
すべての実装されたインタフェース:
java.lang.Iterable<FieldMapBuilder>, XMLFileSupport

public final class FieldMapBuilderStorage
extends Storage<FieldMapBuilder>
implements XMLFileSupport

全てのフィールドマップビルダを格納するストレージです.
フィールドマップビルダのXMLは、kinugasaFieldMapBuilder.dtdを使用します。
フィールドマップビルダをXMLからロードする際のフォーマットはDTDを確認してください。

バージョン:
1.0.0 - 2013/04/29_15:52:24
作成者:
Dra0211

フィールドの概要
private  int height
           
private static FieldMapBuilderStorage INSTANCE
          唯一のインスタンスです.
private  int width
           
private  int x
           
private  int y
           
 
コンストラクタの概要
private FieldMapBuilderStorage()
          シングルトンクラスです.
 
メソッドの概要
private  NodeMap createNodeMap(java.util.List<XMLElement> element)
          NodeMapを作成します.
private  SoundMap createSoundMap(java.lang.String fieldMapName, java.util.List<XMLElement> element)
          SoundMapを作成します.
 int getHeight()
           
static FieldMapBuilderStorage getInstance()
          インスタンスを取得します.
 int getWidth()
           
 int getX()
           
 int getY()
           
 void readFromXML(java.lang.String filePath)
          コンテンツをXMLからロードします.
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 java.lang.String toString()
           
 
クラス kinugasa.contents.resource.Storage から継承されたメソッド
add, addAll, addAll, asList, clear, contains, contains, containsAll, get, getAll, getIfContains, getProperties, isEmpty, iterator, printAll, printAll, put, putAll, putAll, remove, remove, removeAll, removeAll, removeAll, size
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

INSTANCE

private static final FieldMapBuilderStorage INSTANCE
唯一のインスタンスです.


x

private int x

y

private int y

width

private int width

height

private int height
コンストラクタの詳細

FieldMapBuilderStorage

private FieldMapBuilderStorage()
シングルトンクラスです. getInstanceを使用してください。

メソッドの詳細

getInstance

public static FieldMapBuilderStorage getInstance()
インスタンスを取得します.

戻り値:
FieldMapBuilderStorageのインスタンスを返します。

readFromXML

public void readFromXML(java.lang.String filePath)
                 throws IllegalXMLFormatException,
                        ContentsFileNotFoundException,
                        ContentsIOException,
                        DuplicateNameException,
                        java.lang.NumberFormatException
コンテンツをXMLからロードします. ほとんどの実装では、ストレージに対するデータの追加を行います。

定義:
インタフェース XMLFileSupport 内の readFromXML
パラメータ:
filePath -
例外:
IllegalXMLFormatException
ContentsFileNotFoundException
ContentsIOException
DuplicateNameException
java.lang.NumberFormatException

createSoundMap

private SoundMap createSoundMap(java.lang.String fieldMapName,
                                java.util.List<XMLElement> element)
SoundMapを作成します.

パラメータ:
fieldMapName - サウンドマップの名前となるフィールドマップの名前を送信します。
element - BGMエレメントです。
戻り値:
BGMエレメントからサウンドマップを構築して返します。elementがnullの場合は 空のサウンドマップを返します。

createNodeMap

private NodeMap createNodeMap(java.util.List<XMLElement> element)
NodeMapを作成します.

パラメータ:
element - NODEエレメントです。
戻り値:
NODEエレメントからノードマップを構築して返します。elementがnullの場合は 空のノードマップを返します。

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

toString

public java.lang.String toString()
オーバーライド:
クラス Storage<FieldMapBuilder> 内の toString