X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
リビジョン | 339 (tree) |
---|---|
日時 | 2022-11-30 22:36:17 |
作者 | ![]() |
addonディレクトリの名前を定数化、コメントの誤記を修正し表記を統一。
@@ -529,7 +529,7 @@ | ||
529 | 529 | |
530 | 530 | //! @brief モデルファイルを読み込む(.x) |
531 | 531 | //! @param filename ファイル名 |
532 | -//! @return 成功:モデル認識番号(0以上) 失敗:-1 | |
532 | +//! @return 成功:モデルのデータ番号(0以上) 失敗:-1 | |
533 | 533 | int D3DGraphics::LoadModel(const char* filename) |
534 | 534 | { |
535 | 535 | if( filename == NULL ){ return -1; } |
@@ -569,9 +569,9 @@ | ||
569 | 569 | } |
570 | 570 | |
571 | 571 | //! @brief モデルファイルの中間データを作成(モーフィング) |
572 | -//! @param idA モデルAの認識番号 | |
573 | -//! @param idB モデルBの認識番号 | |
574 | -//! @return 成功:新しいモデル認識番号(0以上) 失敗:-1 | |
572 | +//! @param idA モデルAのデータ番号 | |
573 | +//! @param idB モデルBのデータ番号 | |
574 | +//! @return 成功:新しいモデルのデータ番号(0以上) 失敗:-1 | |
575 | 575 | //! @attention モデルAとモデルBは、頂点数・ポリゴン数・インデックスが同じである必要があります。 |
576 | 576 | //! @attention それぞれのモデルデータが正しくないか 頂点数が異なる場合、実行に失敗します。 |
577 | 577 | int D3DGraphics::MorphingModel(int idA, int idB) |
@@ -666,7 +666,7 @@ | ||
666 | 666 | } |
667 | 667 | |
668 | 668 | //! @brief モデルファイルを解放 |
669 | -//! @param id モデル認識番号 | |
669 | +//! @param id モデルのデータ番号 | |
670 | 670 | void D3DGraphics::CleanupModel(int id) |
671 | 671 | { |
672 | 672 | if( (id < 0)||(MAX_MODEL <= id) ){ return; } |
@@ -685,7 +685,7 @@ | ||
685 | 685 | //! @param filename ファイル名 |
686 | 686 | //! @param texturefont テクスチャフォントフラグ |
687 | 687 | //! @param BlackTransparent 黒を透過する |
688 | -//! @return 成功:テクスチャ認識番号(0以上) 失敗:-1 | |
688 | +//! @return 成功:テクスチャのデータ番号(0以上) 失敗:-1 | |
689 | 689 | int D3DGraphics::LoadTexture(const char* filename, bool texturefont, bool BlackTransparent) |
690 | 690 | { |
691 | 691 | if( filename == NULL ){ return -1; } |
@@ -699,7 +699,7 @@ | ||
699 | 699 | OutputLog.WriteLog(LOG_LOAD, "Texture", filename); |
700 | 700 | #endif |
701 | 701 | |
702 | - //空いている認識番号を探す | |
702 | + //空いているデータ番号を探す | |
703 | 703 | for(int i=0; i<MAX_TEXTURE; i++){ |
704 | 704 | if( ptextures[i] == NULL ){ |
705 | 705 | id = i; |
@@ -772,7 +772,7 @@ | ||
772 | 772 | //既に読み込まれているなら失敗 |
773 | 773 | if( TextureDebugFont != -1 ){ return false; } |
774 | 774 | |
775 | - //空いている認識番号を探す | |
775 | + //空いているデータ番号を探す | |
776 | 776 | for(int i=0; i<MAX_TEXTURE; i++){ |
777 | 777 | if( ptextures[i] == NULL ){ |
778 | 778 | id = i; |
@@ -886,7 +886,7 @@ | ||
886 | 886 | #endif |
887 | 887 | |
888 | 888 | //! @brief テクスチャのサイズを取得 |
889 | -//! @param id テクスチャ認識番号 | |
889 | +//! @param id テクスチャのデータ番号 | |
890 | 890 | //! @param width 幅を受け取るポインタ |
891 | 891 | //! @param height 高さを受け取るポインタ |
892 | 892 | //! @return 成功:0 失敗:1 |
@@ -893,7 +893,7 @@ | ||
893 | 893 | //! @attention サーフェイスのサイズを取得します。GPUにロードされたサイズであり、テクスチャ(現物)と異なる場合があります。 |
894 | 894 | int D3DGraphics::GetTextureSize(int id, int *width, int *height) |
895 | 895 | { |
896 | - //無効な認識番号が指定されていたら、処理せず返す。 | |
896 | + //無効なデータ番号が指定されていたら、処理せず返す。 | |
897 | 897 | if( id == -1 ){ return 1; } |
898 | 898 | if( ptextures[id] == NULL ){ return 1; } |
899 | 899 | if( width == NULL ){ return 1; } |
@@ -910,7 +910,7 @@ | ||
910 | 910 | *width = desc.Width; |
911 | 911 | *height = desc.Height; |
912 | 912 | |
913 | - //サーフェイスを開放 | |
913 | + //サーフェイスを解放 | |
914 | 914 | surface->Release(); |
915 | 915 | |
916 | 916 | return 0; |
@@ -931,7 +931,7 @@ | ||
931 | 931 | } |
932 | 932 | |
933 | 933 | //! @brief テクスチャを解放 |
934 | -//! @param id テクスチャ認識番号 | |
934 | +//! @param id テクスチャのデータ番号 | |
935 | 935 | void D3DGraphics::CleanupTexture(int id) |
936 | 936 | { |
937 | 937 | if( (id < 0)||(MAX_TEXTURE <= id) ){ return; } |
@@ -1524,7 +1524,7 @@ | ||
1524 | 1524 | BlockDataIF->Getdata(&data, i); |
1525 | 1525 | |
1526 | 1526 | for(int j=0; j<6; j++){ |
1527 | - //テクスチャ認識番号を取得 | |
1527 | + //テクスチャのデータ番号を取得 | |
1528 | 1528 | int ID = data.material[j].textureID; |
1529 | 1529 | |
1530 | 1530 | if( textureID == ID ){ |
@@ -1576,7 +1576,7 @@ | ||
1576 | 1576 | BlockDataIF->Getdata(&data, i); |
1577 | 1577 | |
1578 | 1578 | for(int j=0; j<6; j++){ |
1579 | - //テクスチャ認識番号を取得 | |
1579 | + //テクスチャのデータ番号を取得 | |
1580 | 1580 | int ID = data.material[j].textureID; |
1581 | 1581 | |
1582 | 1582 | if( textureID == ID ){ |
@@ -1594,7 +1594,7 @@ | ||
1594 | 1594 | |
1595 | 1595 | //! @brief マップテクスチャを取得 |
1596 | 1596 | //! @param id テクスチャ番号 |
1597 | -//! @return テクスチャ認識番号(失敗:-1) | |
1597 | +//! @return テクスチャのデータ番号(失敗:-1) | |
1598 | 1598 | int D3DGraphics::GetMapTextureID(int id) |
1599 | 1599 | { |
1600 | 1600 | if( (id < 0)||(TOTAL_BLOCKTEXTURE <= id ) ){ return -1; } |
@@ -1609,7 +1609,7 @@ | ||
1609 | 1609 | #endif |
1610 | 1610 | if( (bs == 0)&&(BlockDataIF == NULL) ){ return; } |
1611 | 1611 | |
1612 | - //テクスチャを開放 | |
1612 | + //テクスチャを解放 | |
1613 | 1613 | for(int i=0; i<TOTAL_BLOCKTEXTURE; i++){ |
1614 | 1614 | CleanupTexture(mapTextureID[i]); |
1615 | 1615 | } |
@@ -1632,8 +1632,8 @@ | ||
1632 | 1632 | } |
1633 | 1633 | |
1634 | 1634 | //! @brief モデルファイルを描画 |
1635 | -//! @param id_model モデル認識番号 | |
1636 | -//! @param id_texture テクスチャ認識番号 | |
1635 | +//! @param id_model モデルのデータ番号 | |
1636 | +//! @param id_texture テクスチャのデータ番号 | |
1637 | 1637 | //! @param darkflag モデルを暗くする |
1638 | 1638 | //! @param nomodel モデル描画無効化 |
1639 | 1639 | void D3DGraphics::RenderModel(int id_model, int id_texture, bool darkflag, bool nomodel) |
@@ -1717,7 +1717,7 @@ | ||
1717 | 1717 | } |
1718 | 1718 | |
1719 | 1719 | //! @brief 板を描画 |
1720 | -//! @param id_texture テクスチャ認識番号 | |
1720 | +//! @param id_texture テクスチャのデータ番号 | |
1721 | 1721 | //! @param alpha 透明度 (0.0〜1.0 0.0:完全透明) |
1722 | 1722 | //! @param nomodel 板の描画無効化 |
1723 | 1723 | void D3DGraphics::RenderBoard(int id_texture, float alpha, bool nomodel) |
@@ -2365,7 +2365,7 @@ | ||
2365 | 2365 | //! @brief 画像を描画 |
2366 | 2366 | //! @param x x座標 |
2367 | 2367 | //! @param y y座標 |
2368 | -//! @param id テクスチャ認識番号 | |
2368 | +//! @param id テクスチャのデータ番号 | |
2369 | 2369 | //! @param width 幅 |
2370 | 2370 | //! @param height 高さ |
2371 | 2371 | //! @param alpha 透明度(0.0〜1.0) |
@@ -2420,7 +2420,7 @@ | ||
2420 | 2420 | //! @brief 画像を描画【スケーリング機能付き】 |
2421 | 2421 | //! @param x x座標 |
2422 | 2422 | //! @param y y座標 |
2423 | -//! @param id テクスチャ認識番号 | |
2423 | +//! @param id テクスチャのデータ番号 | |
2424 | 2424 | //! @param width 幅 |
2425 | 2425 | //! @param height 高さ |
2426 | 2426 | //! @param alpha 透明度(0.0〜1.0) |
@@ -464,7 +464,7 @@ | ||
464 | 464 | |
465 | 465 | //! @brief モデルファイルを読み込む(.x) |
466 | 466 | //! @param filename ファイル名 |
467 | -//! @return 成功:モデル認識番号(0以上) 失敗:-1 | |
467 | +//! @return 成功:モデルのデータ番号(0以上) 失敗:-1 | |
468 | 468 | int D3DGraphics::LoadModel(const char* filename) |
469 | 469 | { |
470 | 470 | if( filename == NULL ){ return -1; } |
@@ -489,7 +489,7 @@ | ||
489 | 489 | |
490 | 490 | char stroks[] = " ;,"; //区切る文字列 |
491 | 491 | |
492 | - //空いている認識番号を探す | |
492 | + //空いているデータ番号を探す | |
493 | 493 | for(int i=0; i<MAX_MODEL; i++){ |
494 | 494 | if( pmodel[i].useflag == false ){ |
495 | 495 | id = i; |
@@ -721,9 +721,9 @@ | ||
721 | 721 | } |
722 | 722 | |
723 | 723 | //! @brief モデルファイルの中間データを作成(モーフィング) |
724 | -//! @param idA モデルAの認識番号 | |
725 | -//! @param idB モデルBの認識番号 | |
726 | -//! @return 成功:新しいモデル認識番号(0以上) 失敗:-1 | |
724 | +//! @param idA モデルAのデータ番号 | |
725 | +//! @param idB モデルBのデータ番号 | |
726 | +//! @return 成功:新しいモデルのデータ番号(0以上) 失敗:-1 | |
727 | 727 | //! @attention モデルAとモデルBは、頂点数・ポリゴン数・インデックスが同じである必要があります。 |
728 | 728 | //! @attention それぞれのモデルデータが正しくないか 頂点数が異なる場合、実行に失敗します。 |
729 | 729 | int D3DGraphics::MorphingModel(int idA, int idB) |
@@ -745,7 +745,7 @@ | ||
745 | 745 | int idN = -1; |
746 | 746 | int numpA, numpB; |
747 | 747 | |
748 | - //空いている認識番号を探す | |
748 | + //空いているデータ番号を探す | |
749 | 749 | for(int i=0; i<MAX_MODEL; i++){ |
750 | 750 | if( pmodel[i].useflag == false ){ |
751 | 751 | idN = i; |
@@ -802,7 +802,7 @@ | ||
802 | 802 | } |
803 | 803 | |
804 | 804 | //! @brief モデルファイルを解放 |
805 | -//! @param id モデル認識番号 | |
805 | +//! @param id モデルのデータ番号 | |
806 | 806 | void D3DGraphics::CleanupModel(int id) |
807 | 807 | { |
808 | 808 | if( (id < 0)||(MAX_MODEL <= id) ){ return; } |
@@ -914,7 +914,7 @@ | ||
914 | 914 | //! @param filename ファイル名 |
915 | 915 | //! @param texturefont テクスチャフォントフラグ |
916 | 916 | //! @param BlackTransparent 黒を透過する |
917 | -//! @return 成功:テクスチャ認識番号(0以上) 失敗:-1 | |
917 | +//! @return 成功:テクスチャのデータ番号(0以上) 失敗:-1 | |
918 | 918 | int D3DGraphics::LoadTexture(const char* filename, bool texturefont, bool BlackTransparent) |
919 | 919 | { |
920 | 920 | //未使用引数対策 |
@@ -930,7 +930,7 @@ | ||
930 | 930 | OutputLog.WriteLog(LOG_LOAD, "Texture", filename); |
931 | 931 | #endif |
932 | 932 | |
933 | - //空いている認識番号を探す | |
933 | + //空いているデータ番号を探す | |
934 | 934 | for(int i=0; i<MAX_TEXTURE; i++){ |
935 | 935 | if( ptextures[i].useflag == false ){ |
936 | 936 | id = i; |
@@ -1573,7 +1573,7 @@ | ||
1573 | 1573 | //既に読み込まれているなら失敗 |
1574 | 1574 | if( TextureDebugFont != -1 ){ return false; } |
1575 | 1575 | |
1576 | - //空いている認識番号を探す | |
1576 | + //空いているデータ番号を探す | |
1577 | 1577 | for(int i=0; i<MAX_TEXTURE; i++){ |
1578 | 1578 | if( ptextures[i].useflag == false ){ |
1579 | 1579 | id = i; |
@@ -1689,7 +1689,7 @@ | ||
1689 | 1689 | #endif |
1690 | 1690 | |
1691 | 1691 | //! @brief テクスチャのサイズを取得 |
1692 | -//! @param id テクスチャ認識番号 | |
1692 | +//! @param id テクスチャのデータ番号 | |
1693 | 1693 | //! @param width 幅を受け取るポインタ |
1694 | 1694 | //! @param height 高さを受け取るポインタ |
1695 | 1695 | //! @return 成功:0 失敗:1 |
@@ -1696,7 +1696,7 @@ | ||
1696 | 1696 | //! @attention サーフェイスのサイズを取得します。GPUにロードされたサイズであり、テクスチャ(現物)と異なる場合があります。 |
1697 | 1697 | int D3DGraphics::GetTextureSize(int id, int *width, int *height) |
1698 | 1698 | { |
1699 | - //無効な認識番号が指定されていたら、処理せず返す。 | |
1699 | + //無効なデータ番号が指定されていたら、処理せず返す。 | |
1700 | 1700 | if( id == -1 ){ return 1; } |
1701 | 1701 | if( ptextures[id].useflag == false ){ return 1; } |
1702 | 1702 | if( width == NULL ){ return 1; } |
@@ -1709,7 +1709,7 @@ | ||
1709 | 1709 | } |
1710 | 1710 | |
1711 | 1711 | //! @brief テクスチャを指定 |
1712 | -//! @param TextureID テクスチャ認識番号 | |
1712 | +//! @param TextureID テクスチャのデータ番号 | |
1713 | 1713 | void D3DGraphics::SetTexture(int TextureID) |
1714 | 1714 | { |
1715 | 1715 | if( now_textureid == TextureID ){ |
@@ -1723,7 +1723,7 @@ | ||
1723 | 1723 | } |
1724 | 1724 | |
1725 | 1725 | //! @brief テクスチャを解放 |
1726 | -//! @param id テクスチャ認識番号 | |
1726 | +//! @param id テクスチャのデータ番号 | |
1727 | 1727 | void D3DGraphics::CleanupTexture(int id) |
1728 | 1728 | { |
1729 | 1729 | if( (id < 0)||(MAX_TEXTURE <= id) ){ return; } |
@@ -2137,7 +2137,7 @@ | ||
2137 | 2137 | BlockDataIF->Getdata(&data, i); |
2138 | 2138 | |
2139 | 2139 | for(int j=0; j<6; j++){ |
2140 | - //テクスチャ認識番号を取得 | |
2140 | + //テクスチャのデータ番号を取得 | |
2141 | 2141 | int ID = data.material[j].textureID; |
2142 | 2142 | |
2143 | 2143 | if( textureID == ID ){ |
@@ -2193,7 +2193,7 @@ | ||
2193 | 2193 | |
2194 | 2194 | //! @brief マップテクスチャを取得 |
2195 | 2195 | //! @param id テクスチャ番号 |
2196 | -//! @return テクスチャ認識番号(失敗:-1) | |
2196 | +//! @return テクスチャのデータ番号(失敗:-1) | |
2197 | 2197 | int D3DGraphics::GetMapTextureID(int id) |
2198 | 2198 | { |
2199 | 2199 | if( (id < 0)||(TOTAL_BLOCKTEXTURE <= id ) ){ return -1; } |
@@ -2203,7 +2203,7 @@ | ||
2203 | 2203 | //! @brief マップデータを解放 |
2204 | 2204 | void D3DGraphics::CleanupMapdata() |
2205 | 2205 | { |
2206 | - //テクスチャを開放 | |
2206 | + //テクスチャを解放 | |
2207 | 2207 | for(int i=0; i<TOTAL_BLOCKTEXTURE; i++){ |
2208 | 2208 | CleanupTexture(mapTextureID[i]); |
2209 | 2209 | } |
@@ -2214,8 +2214,8 @@ | ||
2214 | 2214 | } |
2215 | 2215 | |
2216 | 2216 | //! @brief モデルファイルを描画 |
2217 | -//! @param id_model モデル認識番号 | |
2218 | -//! @param id_texture テクスチャ認識番号 | |
2217 | +//! @param id_model モデルのデータ番号 | |
2218 | +//! @param id_texture テクスチャのデータ番号 | |
2219 | 2219 | //! @param darkflag モデルを暗くする |
2220 | 2220 | //! @param nomodel モデル描画無効化 |
2221 | 2221 | void D3DGraphics::RenderModel(int id_model, int id_texture, bool darkflag, bool nomodel) |
@@ -2280,7 +2280,7 @@ | ||
2280 | 2280 | } |
2281 | 2281 | |
2282 | 2282 | //! @brief 板を描画 |
2283 | -//! @param id_texture テクスチャ認識番号 | |
2283 | +//! @param id_texture テクスチャのデータ番号 | |
2284 | 2284 | //! @param alpha 透明度 (0.0〜1.0 0.0:完全透明) |
2285 | 2285 | //! @param nomodel 板の描画無効化 |
2286 | 2286 | void D3DGraphics::RenderBoard(int id_texture, float alpha, bool nomodel) |
@@ -3088,7 +3088,7 @@ | ||
3088 | 3088 | //! @brief 画像を描画 |
3089 | 3089 | //! @param x x座標 |
3090 | 3090 | //! @param y y座標 |
3091 | -//! @param id テクスチャ認識番号 | |
3091 | +//! @param id テクスチャのデータ番号 | |
3092 | 3092 | //! @param width 幅 |
3093 | 3093 | //! @param height 高さ |
3094 | 3094 | //! @param alpha 透明度(0.0〜1.0) |
@@ -3154,7 +3154,7 @@ | ||
3154 | 3154 | //! @brief 画像を描画【スケーリング機能付き】 |
3155 | 3155 | //! @param x x座標 |
3156 | 3156 | //! @param y y座標 |
3157 | -//! @param id テクスチャ認識番号 | |
3157 | +//! @param id テクスチャのデータ番号 | |
3158 | 3158 | //! @param width 幅 |
3159 | 3159 | //! @param height 高さ |
3160 | 3160 | //! @param alpha 透明度(0.0〜1.0) |
@@ -63,7 +63,7 @@ | ||
63 | 63 | |
64 | 64 | //! @brief データを取得 |
65 | 65 | //! @param out_data 受け取るポインタ |
66 | -//! @param id 認識番号 | |
66 | +//! @param id データ番号 | |
67 | 67 | //! @return 成功:0 失敗:0以外 |
68 | 68 | int DataInterface::Getdata(void *out_data, int id) |
69 | 69 | { |
@@ -285,7 +285,7 @@ | ||
285 | 285 | |
286 | 286 | //! @brief ブロックデータを取得 |
287 | 287 | //! @param out_data 受け取るblockdata型ポインタ |
288 | -//! @param id 認識番号 | |
288 | +//! @param id データ番号 | |
289 | 289 | //! @return 成功:0 失敗:0以外 |
290 | 290 | int BlockDataInterface::Getdata(blockdata *out_data, int id) |
291 | 291 | { |
@@ -523,7 +523,7 @@ | ||
523 | 523 | } |
524 | 524 | } |
525 | 525 | |
526 | - //ファイルポインタを開放 | |
526 | + //ファイルポインタを解放 | |
527 | 527 | fclose( fp ); |
528 | 528 | |
529 | 529 | #ifdef ENABLE_DEBUGLOG |
@@ -542,7 +542,7 @@ | ||
542 | 542 | |
543 | 543 | //! @brief ポイントデータを取得 |
544 | 544 | //! @param out_data 受け取るpointdata型ポインタ |
545 | -//! @param id 認識番号 | |
545 | +//! @param id データ番号 | |
546 | 546 | //! @return 成功:0 失敗:0以外 |
547 | 547 | int PointDataInterface::Getdata(pointdata *out_data, int id) |
548 | 548 | { |
@@ -557,7 +557,7 @@ | ||
557 | 557 | } |
558 | 558 | |
559 | 559 | //! @brief ポイントのパラメーターを書き換え |
560 | -//! @param id 認識番号 | |
560 | +//! @param id データ番号 | |
561 | 561 | //! @param p1 第1パラメータ |
562 | 562 | //! @param p2 第2パラメータ |
563 | 563 | //! @param p3 第3パラメータ |
@@ -580,7 +580,7 @@ | ||
580 | 580 | |
581 | 581 | //! @brief メッセージ(1行)を取得 |
582 | 582 | //! @param str 文字列を受け取るポインタ |
583 | -//! @param id 認識番号 | |
583 | +//! @param id データ番号 | |
584 | 584 | //! @return 成功:0 失敗:1 |
585 | 585 | int PointDataInterface::GetMessageText(char *str, int id) |
586 | 586 | { |
@@ -1030,7 +1030,7 @@ | ||
1030 | 1030 | } |
1031 | 1031 | } |
1032 | 1032 | |
1033 | - //ファイルハンドルを開放 | |
1033 | + //ファイルハンドルを解放 | |
1034 | 1034 | fclose( fp ); |
1035 | 1035 | |
1036 | 1036 | #ifdef ENABLE_DEBUGLOG |
@@ -1065,15 +1065,15 @@ | ||
1065 | 1065 | if( strcmp(fname, "!") == 0 ){ return false; } |
1066 | 1066 | |
1067 | 1067 | //addonフォルダ内を参照しているか判定 |
1068 | - strcpy(str, "addon"); | |
1068 | + sprintf(str, "%s", ADDONDIR); | |
1069 | 1069 | if( memcmp(fname, str, strlen(str)) == 0 ){ index = (int)strlen(str); } |
1070 | - strcpy(str, "\\addon"); | |
1070 | + sprintf(str, "\\%s", ADDONDIR); | |
1071 | 1071 | if( memcmp(fname, str, strlen(str)) == 0 ){ index = (int)strlen(str); } |
1072 | - strcpy(str, "/addon"); | |
1072 | + sprintf(str, "/%s", ADDONDIR); | |
1073 | 1073 | if( memcmp(fname, str, strlen(str)) == 0 ){ index = (int)strlen(str); } |
1074 | - strcpy(str, ".\\addon"); | |
1074 | + sprintf(str, ".\\%s", ADDONDIR); | |
1075 | 1075 | if( memcmp(fname, str, strlen(str)) == 0 ){ index = (int)strlen(str); } |
1076 | - strcpy(str, "./addon"); | |
1076 | + sprintf(str, "./%s", ADDONDIR); | |
1077 | 1077 | if( memcmp(fname, str, strlen(str)) == 0 ){ index = (int)strlen(str); } |
1078 | 1078 | |
1079 | 1079 | //addonフォルダ内を参照しているならば |
@@ -1367,7 +1367,7 @@ | ||
1367 | 1367 | } |
1368 | 1368 | |
1369 | 1369 | //! @brief ミッション名を取得 |
1370 | -//! @param id 認識番号 | |
1370 | +//! @param id データ番号 | |
1371 | 1371 | //! @return ミッション名 |
1372 | 1372 | char* AddonList::GetMissionName(int id) |
1373 | 1373 | { |
@@ -1376,7 +1376,7 @@ | ||
1376 | 1376 | } |
1377 | 1377 | |
1378 | 1378 | //! @brief ファイル名を取得 |
1379 | -//! @param id 認識番号 | |
1379 | +//! @param id データ番号 | |
1380 | 1380 | //! @return ファイル名 |
1381 | 1381 | char* AddonList::GetFileName(int id) |
1382 | 1382 | { |
@@ -55,7 +55,7 @@ | ||
55 | 55 | } |
56 | 56 | |
57 | 57 | //! @brief リセット |
58 | -//! @param EntryP4 イベント処理を開始する認識番号 (-100、-110、-120 など) | |
58 | +//! @param EntryP4 イベント処理を開始する識別番号 (-100、-110、-120 など) | |
59 | 59 | void EventControl::Reset(signed short int EntryP4) |
60 | 60 | { |
61 | 61 | nextp4 = EntryP4; |
@@ -62,8 +62,8 @@ | ||
62 | 62 | waitcnt = 0; |
63 | 63 | } |
64 | 64 | |
65 | -//! @brief 次に処理する認識番号 | |
66 | -//! @return P4:認識番号 | |
65 | +//! @brief 次に処理する識別番号 | |
66 | +//! @return P4:識別番号 | |
67 | 67 | signed short int EventControl::GetNextP4() |
68 | 68 | { |
69 | 69 | return nextp4; |
@@ -70,7 +70,7 @@ | ||
70 | 70 | } |
71 | 71 | |
72 | 72 | //! @brief 対象人物の死亡判定 |
73 | -//! @param targetP4 ターゲットの認識番号 | |
73 | +//! @param targetP4 ターゲットの識別番号 | |
74 | 74 | //! @param reverse 条件反転(生存判定化) |
75 | 75 | //! @return true:次のイベントへ進む false:次へ進まない |
76 | 76 | //! @attention 対象人物が存在しない場合、falseになります。 |
@@ -95,7 +95,7 @@ | ||
95 | 95 | //! @param pos_y 判定するY座標 |
96 | 96 | //! @param pos_z 判定するZ座標 |
97 | 97 | //! @param dist_r 判定する距離(半径) |
98 | -//! @param targetP4 ターゲットの認識番号 | |
98 | +//! @param targetP4 ターゲットの識別番号 | |
99 | 99 | //! @param reverse 条件反転(未着判定化) |
100 | 100 | //! @return true:次のイベントへ進む false:次へ進まない |
101 | 101 | //! @attention 対象人物が存在しない場合、falseになります。 |
@@ -123,7 +123,7 @@ | ||
123 | 123 | |
124 | 124 | //! @brief 対象人物の指定武器所有判定 |
125 | 125 | //! @param WeaponID 武器の種類番号 |
126 | -//! @param targetP4 ターゲットの認識番号 | |
126 | +//! @param targetP4 ターゲットの識別番号 | |
127 | 127 | //! @param reverse 条件反転(未所有判定化) |
128 | 128 | //! @return true:次のイベントへ進む false:次へ進まない |
129 | 129 | //! @attention 対象人物が存在しない場合、falseになります。 |
@@ -164,7 +164,7 @@ | ||
164 | 164 | } |
165 | 165 | |
166 | 166 | //! @brief 対象移動パスの移動モード書き換え |
167 | -//! @param targetP4 ターゲットの認識番号 | |
167 | +//! @param targetP4 ターゲットの識別番号 | |
168 | 168 | //! @param newmode 移動モード |
169 | 169 | //! @return 成功:true 失敗:false |
170 | 170 | bool EventControl::SetMovePathMode(signed short int targetP4, int newmode) |
@@ -187,7 +187,7 @@ | ||
187 | 187 | } |
188 | 188 | |
189 | 189 | //! @brief 対象人物のチーム番号変更 |
190 | -//! @param targetP4 ターゲットの認識番号 | |
190 | +//! @param targetP4 ターゲットの識別番号 | |
191 | 191 | //! @param TeamID チーム番号 |
192 | 192 | //! @return 成功:true 失敗:false |
193 | 193 | bool EventControl::SetTeamID(signed short int targetP4, int TeamID) |
@@ -202,7 +202,7 @@ | ||
202 | 202 | } |
203 | 203 | |
204 | 204 | //! @brief 対象小物の破壊判定 |
205 | -//! @param targetP4 ターゲットの認識番号 | |
205 | +//! @param targetP4 ターゲットの識別番号 | |
206 | 206 | //! @param reverse 条件反転(未破壊判定化) |
207 | 207 | //! @return true:次のイベントへ進む false:次へ進まない |
208 | 208 | //! @attention 対象小物が存在しない場合、破壊済みとして処理されます。 |
@@ -56,7 +56,7 @@ | ||
56 | 56 | { |
57 | 57 | class PointDataInterface *Point; //!< PointDataInterfaceクラスのポインタ |
58 | 58 | class ObjectManager *ObjMgr; //!< ObjectManagerクラスのポインタ |
59 | - signed short int nextp4; //!< 次に処理するP4:認識番号 | |
59 | + signed short int nextp4; //!< 次に処理するP4:識別番号 | |
60 | 60 | int waitcnt; //!< 時間待ち用カウント |
61 | 61 | |
62 | 62 | bool CheckDead(signed short int targetP4, bool reverse); |
@@ -134,7 +134,9 @@ | ||
134 | 134 | } |
135 | 135 | else{ |
136 | 136 | //addonリスト作成 |
137 | - GameAddon.LoadFiledata("addon\\"); | |
137 | + char str[16]; | |
138 | + sprintf(str, "%s\\", ADDONDIR); | |
139 | + GameAddon.LoadFiledata(str); | |
138 | 140 | |
139 | 141 | GameInfoData.selectmission_id = 0; |
140 | 142 | strcpy(GameInfoData.mifpath, ""); |
@@ -674,7 +676,8 @@ | ||
674 | 676 | |
675 | 677 | if( (MAINMENU_X < mainmenu_mouseX)&&(mainmenu_mouseX < (MAINMENU_X+(signed)strlen(name)*20))&&(MAINMENU_Y+30 + i*30 < mainmenu_mouseY)&&(mainmenu_mouseY < MAINMENU_Y+30 + i*30 + 26) ){ |
676 | 678 | GameInfoData.selectmission_id = -1; |
677 | - strcpy(GameInfoData.mifpath, "addon\\"); | |
679 | + strcpy(GameInfoData.mifpath, ADDONDIR); | |
680 | + strcat(GameInfoData.mifpath, "\\"); | |
678 | 681 | strcat(GameInfoData.mifpath, GameAddon.GetFileName(scrollitems + i)); |
679 | 682 | GameState->PushMouseButton(); |
680 | 683 | } |
@@ -1723,11 +1726,11 @@ | ||
1723 | 1726 | |
1724 | 1727 | void briefing::Destroy() |
1725 | 1728 | { |
1726 | - //ブリーフィング画像を開放 | |
1729 | + //ブリーフィング画像を解放 | |
1727 | 1730 | d3dg->CleanupTexture(TextureA); |
1728 | 1731 | d3dg->CleanupTexture(TextureB); |
1729 | 1732 | |
1730 | - //背景画像を開放 | |
1733 | + //背景画像を解放 | |
1731 | 1734 | d3dg->CleanupTexture(gametitle); |
1732 | 1735 | |
1733 | 1736 | GameState->NextState(); |
@@ -3573,7 +3576,7 @@ | ||
3573 | 3576 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
3574 | 3577 | |
3575 | 3578 | strcpy(NewCommand, ConsoleTextBoxControl.GetTextBoxStr()); |
3576 | - | |
3579 | + | |
3577 | 3580 | ConsoleTextBoxControl.SetTextBoxStr(""); |
3578 | 3581 | } |
3579 | 3582 | } |
@@ -57,9 +57,9 @@ | ||
57 | 57 | #define VIEWANGLE_SCOPE_2 DegreeToRadian(15) //!< 視野角 スコープ2 |
58 | 58 | |
59 | 59 | #define TOTAL_EVENTLINE 3 //!< イベントのライン数 |
60 | -#define TOTAL_EVENTENTRYPOINT_0 -100 //!< ライン 0 の開始認識番号 | |
61 | -#define TOTAL_EVENTENTRYPOINT_1 -110 //!< ライン 1 の開始認識番号 | |
62 | -#define TOTAL_EVENTENTRYPOINT_2 -120 //!< ライン 2 の開始認識番号 | |
60 | +#define TOTAL_EVENTENTRYPOINT_0 -100 //!< ライン 0 の開始識別番号 | |
61 | +#define TOTAL_EVENTENTRYPOINT_1 -110 //!< ライン 1 の開始識別番号 | |
62 | +#define TOTAL_EVENTENTRYPOINT_2 -120 //!< ライン 2 の開始識別番号 | |
63 | 63 | |
64 | 64 | #define TOTAL_EVENTENT_SHOWMESSEC 5.0f //!< イベントメッセージを表示する秒数 |
65 | 65 |
@@ -174,7 +174,7 @@ | ||
174 | 174 | //プロシージャ解放 |
175 | 175 | RemoveWindowSubclass(hWnd, SubClassProc, 1); |
176 | 176 | #elif INPUT_INTERFACE == 2 |
177 | - //キーボードデバイスを開放 | |
177 | + //キーボードデバイスを解放 | |
178 | 178 | if( pDIDevice != NULL ){ |
179 | 179 | pDIDevice->Unacquire(); |
180 | 180 | pDIDevice->Release(); |
@@ -181,7 +181,7 @@ | ||
181 | 181 | pDIDevice = NULL; |
182 | 182 | } |
183 | 183 | |
184 | - //マウスデバイスを開放 | |
184 | + //マウスデバイスを解放 | |
185 | 185 | if( pMouse != NULL ){ |
186 | 186 | pMouse->Unacquire(); |
187 | 187 | pMouse->Release(); |
@@ -188,7 +188,7 @@ | ||
188 | 188 | pMouse = NULL; |
189 | 189 | } |
190 | 190 | |
191 | - //DirectInputを開放 | |
191 | + //DirectInputを解放 | |
192 | 192 | if( pDI != NULL){ |
193 | 193 | pDI->Release(); |
194 | 194 | pDI = NULL; |
@@ -54,6 +54,7 @@ | ||
54 | 54 | #define DEFAULT_SCREEN_WIDTH 640 //!< スクリーンの幅 |
55 | 55 | #define DEFAULT_SCREEN_HEIGHT 480 //!< スクリーンの高さ |
56 | 56 | |
57 | +#define ADDONDIR "addon" //!< ADDONを入れるディレクトリ名 | |
57 | 58 | #define MAX_ADDONLIST 128 //!< ADDONを読み込む最大数 |
58 | 59 | |
59 | 60 | #define TOTAL_HAVEWEAPON 2 //!< 持てる武器の数 |
@@ -100,7 +100,7 @@ | ||
100 | 100 | } |
101 | 101 | |
102 | 102 | //! @brief モデルデータを設定 |
103 | -//! @param id モデル認識番号 | |
103 | +//! @param id モデルのデータ番号 | |
104 | 104 | //! @param size 描画倍率 |
105 | 105 | void object::SetModel(int id, float size) |
106 | 106 | { |
@@ -109,7 +109,7 @@ | ||
109 | 109 | } |
110 | 110 | |
111 | 111 | //! @brief モデルデータを取得 |
112 | -//! @param id モデル認識番号を受け取るポインタ(NULL可) | |
112 | +//! @param id モデルのデータ番号を受け取るポインタ(NULL可) | |
113 | 113 | //! @param size 描画倍率を受け取るポインタ(NULL可) |
114 | 114 | void object::GetModel(int *id, float *size) |
115 | 115 | { |
@@ -118,7 +118,7 @@ | ||
118 | 118 | } |
119 | 119 | |
120 | 120 | //! @brief テクスチャを設定 |
121 | -//! @param id テクスチャ認識番号 | |
121 | +//! @param id テクスチャのデータ番号 | |
122 | 122 | void object::SetTexture(int id) |
123 | 123 | { |
124 | 124 | id_texture = id; |
@@ -125,7 +125,7 @@ | ||
125 | 125 | } |
126 | 126 | |
127 | 127 | //! @brief テクスチャを取得 |
128 | -//! @return テクスチャ認識番号 | |
128 | +//! @return テクスチャのデータ番号 | |
129 | 129 | int object::GetTexture() |
130 | 130 | { |
131 | 131 | return id_texture; |
@@ -2967,7 +2967,7 @@ | ||
2967 | 2967 | } |
2968 | 2968 | |
2969 | 2969 | //! @brief テクスチャを設定 |
2970 | -//! @param id テクスチャ認識番号 | |
2970 | +//! @param id テクスチャのデータ番号 | |
2971 | 2971 | //! @param in_brightness 明るさ |
2972 | 2972 | //! @param in_addbrightness 明るさの加算量 |
2973 | 2973 | //! @param in_alpha 透明度 |
@@ -2990,8 +2990,8 @@ | ||
2990 | 2990 | rotation_y = ry; |
2991 | 2991 | } |
2992 | 2992 | |
2993 | -//! テクスチャ認識番号を取得 | |
2994 | -//! @return テクスチャ認識番号 | |
2993 | +//! テクスチャのデータ番号を取得 | |
2994 | +//! @return テクスチャのデータ番号 | |
2995 | 2995 | int effect::GetTextureID() |
2996 | 2996 | { |
2997 | 2997 | return id_texture; |
@@ -3399,9 +3399,9 @@ | ||
3399 | 3399 | //! @brief モーション取得 |
3400 | 3400 | //! @param arm_rotation_y 腕の角度を取得するポインタ |
3401 | 3401 | //! @param leg_rotation_x 足の角度を取得するポインタ |
3402 | -//! @param upmodel 上半身のモデル認識番号を取得するポインタ | |
3403 | -//! @param armmodel 腕のモデル認識番号を取得するポインタ | |
3404 | -//! @param legmodel 足のモデル認識番号を取得するポインタ | |
3402 | +//! @param upmodel 上半身のモデルのデータ番号を取得するポインタ | |
3403 | +//! @param armmodel 腕のモデルのデータ番号を取得するポインタ | |
3404 | +//! @param legmodel 足のモデルのデータ番号を取得するポインタ | |
3405 | 3405 | void HumanMotionControl::GetRenderMotion(float *arm_rotation_y, float *leg_rotation_x, int *upmodel, int *armmodel, int *legmodel) |
3406 | 3406 | { |
3407 | 3407 | if( arm_rotation_y != NULL ){ *arm_rotation_y = armmodel_rotation_y; } |
@@ -109,8 +109,8 @@ | ||
109 | 109 | float rotation_x; //!< 回転角度 |
110 | 110 | float model_size; //!< 描画サイズ |
111 | 111 | int id_parameter; //!< データの種類 |
112 | - int id_model; //!< モデル認識番号 | |
113 | - int id_texture; //!< テクスチャ認識番号 | |
112 | + int id_model; //!< モデルのデータ番号 | |
113 | + int id_texture; //!< テクスチャのデータ番号 | |
114 | 114 | bool DarkModelFlag; //!< モデルを暗くする |
115 | 115 | bool EnableFlag; //!< 有効化フラグ |
116 | 116 |
@@ -136,7 +136,7 @@ | ||
136 | 136 | { |
137 | 137 | protected: |
138 | 138 | int point_dataid; //!< ポイントのデータ番号 |
139 | - signed short int point_p4; //!< ポイントの認識番号 | |
139 | + signed short int point_p4; //!< ポイントの識別番号 | |
140 | 140 | int teamid; //!< チーム番号 |
141 | 141 | float move_x; //!< X軸速度 |
142 | 142 | float move_y; //!< Y軸(落下)速度 |
@@ -273,7 +273,7 @@ | ||
273 | 273 | protected: |
274 | 274 | class MIFInterface *MIFdata; //!< MIFを管理するクラスへのポインタ |
275 | 275 | float rotation_y; //!< 回転角度 |
276 | - signed short int point_p4; //!< ポイントの認識番号 | |
276 | + signed short int point_p4; //!< ポイントの識別番号 | |
277 | 277 | int hp; //!< 体力 |
278 | 278 | float jump_rx; //!< 飛ばす横軸角度 |
279 | 279 | float move_rx; //!< 飛ばす横軸移動量 |
@@ -531,7 +531,7 @@ | ||
531 | 531 | //! @param addrotation 回転角度の加算量 |
532 | 532 | //! @param size 描画倍率 |
533 | 533 | //! @param addsize 描画倍率の加算量 |
534 | -//! @param texture テクスチャの認識番号 | |
534 | +//! @param texture テクスチャのデータ番号 | |
535 | 535 | //! @param brightness 明るさ |
536 | 536 | //! @param addbrightness 明るさの加算量 |
537 | 537 | //! @param alpha 透明度 |
@@ -562,7 +562,7 @@ | ||
562 | 562 | //! @param pos_z Z座標 |
563 | 563 | //! @param size 描画倍率 |
564 | 564 | //! @param rotation 回転角度 |
565 | -//! @param texture テクスチャの認識番号 | |
565 | +//! @param texture テクスチャのデータ番号 | |
566 | 566 | //! @param brightness 明るさ |
567 | 567 | //! @param addbrightness 明るさの加算量 |
568 | 568 | //! @param alpha 透明度 |
@@ -1748,7 +1748,7 @@ | ||
1748 | 1748 | } |
1749 | 1749 | |
1750 | 1750 | //! @brief 人を検索 |
1751 | -//! @param p4 検索対象の認識番号 | |
1751 | +//! @param p4 検索対象の識別番号 | |
1752 | 1752 | //! @return 該当したhumanクラスのポインタ (見つからない場合はNULL) |
1753 | 1753 | //! @attention 複数該当する場合、最初に該当したデータを返します。 |
1754 | 1754 | human* ObjectManager::SearchHuman(signed short int p4) |
@@ -1771,7 +1771,7 @@ | ||
1771 | 1771 | } |
1772 | 1772 | |
1773 | 1773 | //! @brief 小物を検索 |
1774 | -//! @param p4 検索対象の認識番号 | |
1774 | +//! @param p4 検索対象の識別番号 | |
1775 | 1775 | //! @return 該当したsmallobjectクラスのポインタ (見つからない場合はNULL) |
1776 | 1776 | //! @attention 複数該当する場合、最初に該当したデータを返します。 |
1777 | 1777 | smallobject* ObjectManager::SearchSmallobject(signed short int p4) |
@@ -190,7 +190,7 @@ | ||
190 | 190 | return 0; |
191 | 191 | } |
192 | 192 | |
193 | -//! @brief 人のモデル認識番号を取得 | |
193 | +//! @brief 人のモデルのデータ番号を取得 | |
194 | 194 | //! @param out_upmodel[] 上半身のモデル (配列数:TOTAL_UPMODE) |
195 | 195 | //! @param out_armmodel[] 腕のモデル (配列数:TOTAL_ARMMODE) |
196 | 196 | //! @param *legmodel 足(静止状態)のモデルのポインタ |
@@ -485,7 +485,7 @@ | ||
485 | 485 | } |
486 | 486 | |
487 | 487 | //! @brief 武器のサウンドを取得 |
488 | -//! @param id 0以上で武器の認識番号、-1でリロード音 | |
488 | +//! @param id 0以上で武器のデータ番号、-1でリロード音 | |
489 | 489 | //! @return 成功:データ番号 失敗:-1 |
490 | 490 | int ResourceManager::GetWeaponSound(int id) |
491 | 491 | { |
@@ -597,7 +597,7 @@ | ||
597 | 597 | } |
598 | 598 | |
599 | 599 | //! @brief 小物のサウンドを取得 |
600 | -//! @param id 小物の認識番号 | |
600 | +//! @param id 小物のデータ番号 | |
601 | 601 | //! @return 成功:データ番号 失敗:-1 |
602 | 602 | int ResourceManager::GetSmallObjectSound(int id) |
603 | 603 | { |
@@ -726,7 +726,7 @@ | ||
726 | 726 | } |
727 | 727 | |
728 | 728 | //! @brief スコープテクスチャを取得 |
729 | -//! @return テクスチャの認識番号 | |
729 | +//! @return テクスチャのデータ番号 | |
730 | 730 | int ResourceManager::GetScopeTexture() |
731 | 731 | { |
732 | 732 | return scopetexture; |
@@ -868,7 +868,7 @@ | ||
868 | 868 | } |
869 | 869 | |
870 | 870 | //! @brief 血テクスチャ取得 |
871 | -//! @return テクスチャの認識番号 | |
871 | +//! @return テクスチャのデータ番号 | |
872 | 872 | int ResourceManager::GetEffectBloodTexture() |
873 | 873 | { |
874 | 874 | return effecttexture_blood; |
@@ -875,7 +875,7 @@ | ||
875 | 875 | } |
876 | 876 | |
877 | 877 | //! @brief フラッシュテクスチャ取得 |
878 | -//! @return テクスチャの認識番号 | |
878 | +//! @return テクスチャのデータ番号 | |
879 | 879 | int ResourceManager::GetEffectMflashTexture() |
880 | 880 | { |
881 | 881 | return effecttexture_mflash; |
@@ -882,7 +882,7 @@ | ||
882 | 882 | } |
883 | 883 | |
884 | 884 | //! @brief 煙テクスチャ取得 |
885 | -//! @return テクスチャの認識番号 | |
885 | +//! @return テクスチャのデータ番号 | |
886 | 886 | int ResourceManager::GetEffectSmokeTexture() |
887 | 887 | { |
888 | 888 | return effecttexture_smoke; |
@@ -889,7 +889,7 @@ | ||
889 | 889 | } |
890 | 890 | |
891 | 891 | //! @brief 薬莢テクスチャ取得 |
892 | -//! @return テクスチャの認識番号 | |
892 | +//! @return テクスチャのデータ番号 | |
893 | 893 | int ResourceManager::GetEffectYakkyouTexture() |
894 | 894 | { |
895 | 895 | return effecttexture_yakkyou; |
@@ -60,14 +60,14 @@ | ||
60 | 60 | int human_walkmodel[TOTAL_WALKMODE]; //!< 足(歩き)のモデル |
61 | 61 | int human_runmodel[TOTAL_RUNMODE]; //!< 足(走り)のモデル |
62 | 62 | int human_texture_Param[MAX_LOADHUMANTEXTURE]; //!< 人のテクスチャの対応番号 |
63 | - int human_texture_d3dg[MAX_LOADHUMANTEXTURE]; //!< 人のテクスチャの認識番号 | |
64 | - int weapon_model[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のモデル認識番号 | |
65 | - int weapon_texture[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のテクスチャ認識番号 | |
66 | - int weapon_sound[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のサウンド認識番号 | |
67 | - int weapon_reloadsound; //!< 武器のリロードサウンド認識番号 | |
68 | - int smallobject_model[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のモデル認識番号 | |
69 | - int smallobject_texture[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のテクスチャ認識番号 | |
70 | - int smallobject_sound[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のサウンド認識番号 | |
63 | + int human_texture_d3dg[MAX_LOADHUMANTEXTURE]; //!< 人のテクスチャのデータ番号 | |
64 | + int weapon_model[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のモデルのデータ番号 | |
65 | + int weapon_texture[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のテクスチャのデータ番号 | |
66 | + int weapon_sound[TOTAL_PARAMETERINFO_WEAPON]; //!< 武器のサウンドのデータ番号 | |
67 | + int weapon_reloadsound; //!< 武器のリロードサウンドのデータ番号 | |
68 | + int smallobject_model[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のモデルのデータ番号 | |
69 | + int smallobject_texture[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のテクスチャのデータ番号 | |
70 | + int smallobject_sound[TOTAL_PARAMETERINFO_SMALLOBJECT + MAX_ADDSMALLOBJECT]; //!< 小物のサウンドのデータ番号 | |
71 | 71 | int bullet_model[TOTAL_PARAMETERINFO_BULLET]; //!< 弾のモデル |
72 | 72 | int bullet_texture[TOTAL_PARAMETERINFO_BULLET]; //!< 弾のテクスチャ |
73 | 73 |
@@ -154,7 +154,7 @@ | ||
154 | 154 | |
155 | 155 | //! @brief サウンドを読み込む |
156 | 156 | //! @param filename ファイル名 |
157 | -//! @return 成功:0以上の認識番号 失敗:-1 | |
157 | +//! @return 成功:0以上のデータ番号 失敗:-1 | |
158 | 158 | //! @attention 2チャンネル(ステレオ)データが指定された場合、右側のデータだけ取得され、左側のデータは無視されます。 |
159 | 159 | int SoundControl::LoadSound(const char* filename) |
160 | 160 | { |
@@ -339,7 +339,7 @@ | ||
339 | 339 | } |
340 | 340 | |
341 | 341 | //! @brief サウンドを再生(非3D再生) |
342 | -//! @param id 認識番号 | |
342 | +//! @param id データ番号 | |
343 | 343 | //! @param volume 再生ボリューム |
344 | 344 | //! @param pan <無効> |
345 | 345 | //! @return 成功:1 失敗:0 |
@@ -378,7 +378,7 @@ | ||
378 | 378 | } |
379 | 379 | |
380 | 380 | //! @brief サウンドを再生(3D再生) |
381 | -//! @param id 認識番号 | |
381 | +//! @param id データ番号 | |
382 | 382 | //! @param x 音源のX座標 |
383 | 383 | //! @param y 音源のY座標 |
384 | 384 | //! @param z 音源のZ座標 |
@@ -462,7 +462,7 @@ | ||
462 | 462 | } |
463 | 463 | |
464 | 464 | //! @brief サウンドを解放 |
465 | -//! @param id 認識番号 | |
465 | +//! @param id データ番号 | |
466 | 466 | void SoundControl::CleanupSound(int id) |
467 | 467 | { |
468 | 468 | if( pDSound == NULL ){ return; } |
@@ -105,7 +105,7 @@ | ||
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | - //DLLを開放 | |
108 | + //DLLを解放 | |
109 | 109 | FreeLibrary(lib); |
110 | 110 | lib = NULL; |
111 | 111 |
@@ -119,7 +119,7 @@ | ||
119 | 119 | { |
120 | 120 | if( lib == NULL ){ return; } |
121 | 121 | |
122 | - //使用中のサウンドデータを開放 | |
122 | + //使用中のサウンドデータを解放 | |
123 | 123 | for(int i=0; i<MAX_LOADSOUND; i++){ |
124 | 124 | if( useflag[i] == true ){ |
125 | 125 | if( DSrelease != NULL ){ DSrelease(i); } |
@@ -130,7 +130,7 @@ | ||
130 | 130 | //DLLを終了 |
131 | 131 | if( DSend != NULL ){ DSend(); } |
132 | 132 | |
133 | - //DLLを開放 | |
133 | + //DLLを解放 | |
134 | 134 | FreeLibrary(lib); |
135 | 135 | lib = NULL; |
136 | 136 |
@@ -171,7 +171,7 @@ | ||
171 | 171 | |
172 | 172 | //! @brief サウンドを読み込む |
173 | 173 | //! @param filename ファイル名 |
174 | -//! @return 成功:0以上の認識番号 失敗:-1 | |
174 | +//! @return 成功:0以上のデータ番号 失敗:-1 | |
175 | 175 | int SoundControl::LoadSound(const char* filename) |
176 | 176 | { |
177 | 177 | if( lib == NULL ){ return -1; } |
@@ -214,7 +214,7 @@ | ||
214 | 214 | } |
215 | 215 | |
216 | 216 | //! @brief サウンドを再生(非3D再生DLL呼び出し) |
217 | -//! @param id 認識番号 | |
217 | +//! @param id データ番号 | |
218 | 218 | //! @param volume 再生ボリューム |
219 | 219 | //! @param pan パン(左右バランス) |
220 | 220 | //! @return 成功:1〜3 失敗:0 |
@@ -238,7 +238,7 @@ | ||
238 | 238 | } |
239 | 239 | |
240 | 240 | //! @brief サウンドを再生(3D再生) |
241 | -//! @param id 認識番号 | |
241 | +//! @param id データ番号 | |
242 | 242 | //! @param x 音源のX座標 |
243 | 243 | //! @param y 音源のY座標 |
244 | 244 | //! @param z 音源のZ座標 |
@@ -291,7 +291,7 @@ | ||
291 | 291 | } |
292 | 292 | |
293 | 293 | //! @brief サウンドを解放 |
294 | -//! @param id 認識番号 | |
294 | +//! @param id データ番号 | |
295 | 295 | void SoundControl::CleanupSound(int id) |
296 | 296 | { |
297 | 297 | if( lib == NULL ){ return; } |
@@ -298,7 +298,7 @@ | ||
298 | 298 | if( (id < 0)||(MAX_LOADSOUND <= id) ){ return; } |
299 | 299 | if( useflag[id] == false ){ return; } |
300 | 300 | |
301 | - //使用中のサウンドデータを開放 | |
301 | + //使用中のサウンドデータを解放 | |
302 | 302 | if( DSrelease != NULL ){ DSrelease(id); } |
303 | 303 | |
304 | 304 | //使用中フラグを解除 |