• R/O
  • SSH
  • HTTPS

nlgp1: Commit


Commit MetaInfo

Revision551 (tree)
Time2010-11-11 02:10:35
Authorbiikame

Log Message

InitializeStageをLoadStageに変更

Change Summary

Incremental Difference

--- trunk/Nlgp1/Nlgp1/Stages/Stage.cs (revision 550)
+++ trunk/Nlgp1/Nlgp1/Stages/Stage.cs (revision 551)
@@ -22,12 +22,12 @@
2222 /// <param name="index">ステージ番号</param>
2323 public static void Load( int index ) {
2424 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 );
2828
2929 // マップ上にセルを配置する。
30- Common.Data.Layer backLayer = commonStage.GetLayer( LayerType.Back );
30+ Common.Data.Layer backLayer = stage.GetLayer( LayerType.Back );
3131 for( int chipX = 0 ; backLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) {
3232 for( int chipY = 0 ; backLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) {
3333 int cellIndex = backLayer.Map[ chipX , chipY ].Index;
@@ -43,7 +43,7 @@
4343 }
4444
4545 // マップ上にセルを配置する。
46- Common.Data.Layer frontLayer = commonStage.GetLayer( LayerType.Front );
46+ Common.Data.Layer frontLayer = stage.GetLayer( LayerType.Front );
4747 for( int chipX = 0 ; frontLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) {
4848 for( int chipY = 0 ; frontLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) {
4949 int cellIndex = frontLayer.Map[ chipX , chipY ].Index;
@@ -59,7 +59,7 @@
5959 }
6060
6161 // マップ上にキャラクタを配置する。
62- Common.Data.Layer characterLayer = commonStage.GetLayer( LayerType.Character );
62+ Common.Data.Layer characterLayer = stage.GetLayer( LayerType.Character );
6363 for( int chipX = 0 ; characterLayer.Map.GetLength( 0 ) > chipX ; chipX++ ) {
6464 for( int chipY = 0 ; characterLayer.Map.GetLength( 1 ) > chipY ; chipY++ ) {
6565 int cellIndex = characterLayer.Map[ chipX , chipY ].Index;
--- trunk/Nlgp1/Nlgp1/Drawers/SpriteDrawer.cs (revision 550)
+++ trunk/Nlgp1/Nlgp1/Drawers/SpriteDrawer.cs (revision 551)
@@ -18,9 +18,9 @@
1818 /// ステージを読み込みます。
1919 /// </summary>
2020 /// <param name="cellCount">セル数</param>
21- public static void InitializeStage( int cellCount ) {
21+ public static void LoadStage( int cellCount ) {
2222 drawerList = new Dictionary< ChipId , SpriteDrawer >( cellCount );
23- Chipset.InitializeStage( cellCount );
23+ Chipset.LoadStage( cellCount );
2424 }
2525
2626 private static Dictionary< ChipId , SpriteDrawer > drawerList;
--- trunk/Nlgp1/Nlgp1/Drawers/Chipset.cs (revision 550)
+++ trunk/Nlgp1/Nlgp1/Drawers/Chipset.cs (revision 551)
@@ -20,7 +20,7 @@
2020 /// ステージを読み込みます。
2121 /// </summary>
2222 /// <param name="cellCount">セル数</param>
23- public static void InitializeStage( int cellCount ) {
23+ public static void LoadStage( int cellCount ) {
2424 chipsetList = new Dictionary< ChipId , Chipset >( cellCount );
2525 }
2626
--- trunk/Nlgp1/Nlgp1/Drawers/StageDrawer.cs (revision 550)
+++ trunk/Nlgp1/Nlgp1/Drawers/StageDrawer.cs (revision 551)
@@ -55,8 +55,8 @@
5555 /// ステージを読み込みます。
5656 /// </summary>
5757 /// <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 );
6060 }
6161
6262 /// <summary>
--- trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 550)
+++ trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 551)
@@ -20,7 +20,7 @@
2020 /// </summary>
2121 /// <param name="mapHeight">シートの縦幅</param>
2222 /// <param name="mapWidth">シートの横幅</param>
23- public static void InitializeStage( int mapHeight , int mapWidth ) {
23+ public static void LoadStage( int mapHeight , int mapWidth ) {
2424 spriteList = new List< Sprite >( mapHeight * mapWidth );
2525 }
2626 /// <summary>
Show on old repository browser