InitializeStageをLoadStageに変更
@@ -22,12 +22,12 @@ | ||
22 | 22 | /// <param name="index">ステージ番号</param> |
23 | 23 | public static void Load( int index ) { |
24 | 24 | Index = index; |
25 | - Common.Data.Stage commonStage = Common.Data.Stage.Load( Program.CurrentDirectory , index ); | |
26 | - StageDrawer.InitializeStage( commonStage.ChipCount ); | |
27 | - Sprite.InitializeStage( commonStage.MapHeight , commonStage.MapWidth ); | |
25 | + Common.Data.Stage stage = Common.Data.Stage.Load( Program.CurrentDirectory , index ); | |
26 | + StageDrawer.LoadStage( stage.ChipCount ); | |
27 | + Sprite.LoadStage( stage.MapHeight , stage.MapWidth ); | |
28 | 28 | |
29 | 29 | // マップ上にセルを配置する。 |
30 | - Common.Data.Layer backLayer = commonStage.GetLayer( LayerType.Back ); | |
30 | + Common.Data.Layer backLayer = stage.GetLayer( LayerType.Back ); | |
31 | 31 | for( int chipX = 0 ; backLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) { |
32 | 32 | for( int chipY = 0 ; backLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) { |
33 | 33 | int cellIndex = backLayer.Map[ chipX , chipY ].Index; |
@@ -43,7 +43,7 @@ | ||
43 | 43 | } |
44 | 44 | |
45 | 45 | // マップ上にセルを配置する。 |
46 | - Common.Data.Layer frontLayer = commonStage.GetLayer( LayerType.Front ); | |
46 | + Common.Data.Layer frontLayer = stage.GetLayer( LayerType.Front ); | |
47 | 47 | for( int chipX = 0 ; frontLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) { |
48 | 48 | for( int chipY = 0 ; frontLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) { |
49 | 49 | int cellIndex = frontLayer.Map[ chipX , chipY ].Index; |
@@ -59,7 +59,7 @@ | ||
59 | 59 | } |
60 | 60 | |
61 | 61 | // マップ上にキャラクタを配置する。 |
62 | - Common.Data.Layer characterLayer = commonStage.GetLayer( LayerType.Character ); | |
62 | + Common.Data.Layer characterLayer = stage.GetLayer( LayerType.Character ); | |
63 | 63 | for( int chipX = 0 ; characterLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) { |
64 | 64 | for( int chipY = 0 ; characterLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) { |
65 | 65 | int cellIndex = characterLayer.Map[ chipX , chipY ].Index; |
@@ -18,9 +18,9 @@ | ||
18 | 18 | /// ステージを読み込みます。 |
19 | 19 | /// </summary> |
20 | 20 | /// <param name="cellCount">セル数</param> |
21 | - public static void InitializeStage( int cellCount ) { | |
21 | + public static void LoadStage( int cellCount ) { | |
22 | 22 | drawerList = new Dictionary< ChipId , SpriteDrawer >( cellCount ); |
23 | - Chipset.InitializeStage( cellCount ); | |
23 | + Chipset.LoadStage( cellCount ); | |
24 | 24 | } |
25 | 25 | |
26 | 26 | private static Dictionary< ChipId , SpriteDrawer > drawerList; |
@@ -20,7 +20,7 @@ | ||
20 | 20 | /// ステージを読み込みます。 |
21 | 21 | /// </summary> |
22 | 22 | /// <param name="cellCount">セル数</param> |
23 | - public static void InitializeStage( int cellCount ) { | |
23 | + public static void LoadStage( int cellCount ) { | |
24 | 24 | chipsetList = new Dictionary< ChipId , Chipset >( cellCount ); |
25 | 25 | } |
26 | 26 |
@@ -55,8 +55,8 @@ | ||
55 | 55 | /// ステージを読み込みます。 |
56 | 56 | /// </summary> |
57 | 57 | /// <param name="cellCount">セル数</param> |
58 | - public static void InitializeStage( int cellCount ) { | |
59 | - SpriteDrawer.InitializeStage( cellCount ); | |
58 | + public static void LoadStage( int cellCount ) { | |
59 | + SpriteDrawer.LoadStage( cellCount ); | |
60 | 60 | } |
61 | 61 | |
62 | 62 | /// <summary> |
@@ -20,7 +20,7 @@ | ||
20 | 20 | /// </summary> |
21 | 21 | /// <param name="mapHeight">シートの縦幅</param> |
22 | 22 | /// <param name="mapWidth">シートの横幅</param> |
23 | - public static void InitializeStage( int mapHeight , int mapWidth ) { | |
23 | + public static void LoadStage( int mapHeight , int mapWidth ) { | |
24 | 24 | spriteList = new List< Sprite >( mapHeight * mapWidth ); |
25 | 25 | } |
26 | 26 | /// <summary> |