• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision202 (tree)
Time2018-05-07 00:33:50
Authorxops-mikan

Log Message

関数名の誤字修正、変数の初期化漏れ修正、コメントの誤記修正

Change Summary

Incremental Difference

--- trunk/ai.cpp (revision 201)
+++ trunk/ai.cpp (revision 202)
@@ -36,7 +36,7 @@
3636 {
3737 ObjMgr = in_ObjMgr;
3838 ctrlid = in_ctrlid;
39- ctrlhuman = in_ObjMgr->GeHumanObject(in_ctrlid);
39+ ctrlhuman = in_ObjMgr->GetHumanObject(in_ctrlid);
4040 blocks = in_blocks;
4141 Param = in_Param;
4242 CollD = in_CollD;
@@ -72,7 +72,7 @@
7272 {
7373 ObjMgr = in_ObjMgr;
7474 ctrlid = in_ctrlid;
75- ctrlhuman = in_ObjMgr->GeHumanObject(in_ctrlid);
75+ ctrlhuman = in_ObjMgr->GetHumanObject(in_ctrlid);
7676 blocks = in_blocks;
7777 Param = in_Param;
7878 CollD = in_CollD;
@@ -853,7 +853,7 @@
853853 {
854854 int selectweapon;
855855 class weapon *weapon[TOTAL_HAVEWEAPON];
856- int nbs;
856+ int nbs = 0;
857857
858858 for(int i=0; i<TOTAL_HAVEWEAPON; i++){
859859 weapon[i] = NULL;
@@ -1327,7 +1327,7 @@
13271327
13281328 //人のオブジェクトを取得
13291329 class human* thuman;
1330- thuman = ObjMgr->GeHumanObject(id);
1330+ thuman = ObjMgr->GetHumanObject(id);
13311331 if( thuman == NULL ){ return false; }
13321332
13331333 //同名関数をオーバーロード
@@ -1392,7 +1392,7 @@
13921392
13931393 //ターゲットのクラスを取得
13941394 class human* thuman;
1395- thuman = ObjMgr->GeHumanObject(id);
1395+ thuman = ObjMgr->GetHumanObject(id);
13961396 if( thuman == NULL ){ return false; }
13971397 if( thuman->GetEnableFlag() == false ){ return false; }
13981398
@@ -1580,7 +1580,7 @@
15801580 if( (MoveNavi->GetMoveMode() == AI_TRACKING)&&(GetRand(3) == 0) ){
15811581 float x, z;
15821582 float tx, tz;
1583- class human *targethuman = ObjMgr->GeHumanObject(MoveNavi->GetTargetHumanID());
1583+ class human *targethuman = ObjMgr->GetHumanObject(MoveNavi->GetTargetHumanID());
15841584 targethuman->GetPosData(&tx, NULL, &tz, NULL);
15851585 x = posx - tx;
15861586 z = posz - tz;
@@ -1909,7 +1909,7 @@
19091909 hold = false;
19101910 path_pointid = 0;
19111911
1912- ObjMgr->GeHumanObject(ctrlid)->GetParamData(NULL, &path_pointid, NULL, NULL);
1912+ ObjMgr->GetHumanObject(ctrlid)->GetParamData(NULL, &path_pointid, NULL, NULL);
19131913 MovePathNextState();
19141914 }
19151915
@@ -1921,7 +1921,7 @@
19211921 if( hold == true ){
19221922 if( movemode == AI_TRACKING ){
19231923 class human *targethuman;
1924- targethuman = ObjMgr->GeHumanObject(target_humanid);
1924+ targethuman = ObjMgr->GetHumanObject(target_humanid);
19251925 targethuman->GetPosData(&target_posx, NULL, &target_posz, &target_rx);
19261926 }
19271927 return true;
@@ -1969,7 +1969,7 @@
19691969 target_humanid = ObjMgr->GetHumanObjectID(targethuman);
19701970 }
19711971
1972- targethuman = ObjMgr->GeHumanObject(target_humanid);
1972+ targethuman = ObjMgr->GetHumanObject(target_humanid);
19731973 targethuman->GetPosData(&target_posx, NULL, &target_posz, &target_rx);
19741974 }
19751975 else{
@@ -2235,7 +2235,7 @@
22352235 }
22362236
22372237 //角度を取得
2238- ObjMgr->GeHumanObject(ctrlid)->GetRxRy(&rx, &ry);
2238+ ObjMgr->GetHumanObject(ctrlid)->GetRxRy(&rx, &ry);
22392239
22402240 //角度に加算
22412241 rx += addrx;
@@ -2246,7 +2246,7 @@
22462246 if( ry < DegreeToRadian(-70) ){ ry = DegreeToRadian(-70); }
22472247
22482248 //角度を設定
2249- ObjMgr->GeHumanObject(ctrlid)->SetRxRy(rx, ry);
2249+ ObjMgr->GetHumanObject(ctrlid)->SetRxRy(rx, ry);
22502250
22512251 //回転速度の減衰
22522252 addrx *= 0.8f;
--- trunk/gamemain.cpp (revision 201)
+++ trunk/gamemain.cpp (revision 202)
@@ -1534,7 +1534,7 @@
15341534 }
15351535 else{
15361536 for(int i=0; i<MAX_HUMAN; i++){
1537- human *EnemyHuman = ObjMgr.GeHumanObject(i);
1537+ human *EnemyHuman = ObjMgr.GetHumanObject(i);
15381538 if( ObjMgr.CheckZombieAttack(myHuman, EnemyHuman) == true ){
15391539 ObjMgr.HitZombieAttack(myHuman, EnemyHuman);
15401540 }
@@ -2081,7 +2081,7 @@
20812081 int EnemyID;
20822082 float mposx, mposz;
20832083 int movemode;
2084- ObjMgr.GeHumanObject(AIdebuginfoID)->GetPosData(&posx, &posy, &posz, &rx);
2084+ ObjMgr.GetHumanObject(AIdebuginfoID)->GetPosData(&posx, &posy, &posz, &rx);
20852085 EnemyID = HumanAI[AIdebuginfoID].GetEnemyHumanID();
20862086 HumanAI[AIdebuginfoID].GetMoveTargetPos(&mposx, &mposz, &movemode);
20872087
@@ -2098,7 +2098,7 @@
20982098 d3dg->Drawline(mposx, posy, mposz+10.0f, mposx, posy, mposz-10.0f, d3dg->GetColorCode(1.0f,1.0f,0.0f,1.0f));
20992099
21002100 if( EnemyID != -1 ){
2101- ObjMgr.GeHumanObject(EnemyID)->GetPosData(&posx, &posy, &posz, &rx);
2101+ ObjMgr.GetHumanObject(EnemyID)->GetPosData(&posx, &posy, &posz, &rx);
21022102
21032103 //攻撃対象
21042104 d3dg->Drawline(posx+3.0f, posy, posz+3.0f, posx+3.0f, posy, posz-3.0f, d3dg->GetColorCode(1.0f,0.0f,0.0f,1.0f));
@@ -2445,8 +2445,8 @@
24452445 float mposx, mposz;
24462446 int movemode;
24472447 pointdata ppdata;
2448- ObjMgr.GeHumanObject(AIdebuginfoID)->GetPosData(&posx, &posy, &posz, &rx);
2449- hp = ObjMgr.GeHumanObject(AIdebuginfoID)->GetHP();
2448+ ObjMgr.GetHumanObject(AIdebuginfoID)->GetPosData(&posx, &posy, &posz, &rx);
2449+ hp = ObjMgr.GetHumanObject(AIdebuginfoID)->GetHP();
24502450 HumanAI[AIdebuginfoID].GetBattleMode(NULL, modestr);
24512451 EnemyID = HumanAI[AIdebuginfoID].GetEnemyHumanID();
24522452 HumanAI[AIdebuginfoID].GetMoveTargetPos(&mposx, &mposz, &movemode);
@@ -2700,7 +2700,7 @@
27002700 //プレイヤーの情報を取得
27012701 int PlayerID = ObjMgr.GetPlayerID();
27022702 int myteamid;
2703- ObjMgr.GeHumanObject(PlayerID)->GetParamData(NULL, NULL, NULL, &myteamid);
2703+ ObjMgr.GetHumanObject(PlayerID)->GetParamData(NULL, NULL, NULL, &myteamid);
27042704
27052705 //人を描画
27062706 for(int i=0; i<MAX_HUMAN; i++){
@@ -2713,7 +2713,7 @@
27132713 int color;
27142714
27152715 //人のオブジェクトを取得
2716- thuman = ObjMgr.GeHumanObject(i);
2716+ thuman = ObjMgr.GetHumanObject(i);
27172717
27182718 //使われていない人や死体は無視する
27192719 if( thuman->GetEnableFlag() == false ){ continue; }
@@ -2895,7 +2895,7 @@
28952895 for(int i=0; i<MAX_HUMAN; i++){
28962896 int teamid;
28972897 bool deadflag;
2898- human *thuman = ObjMgr.GeHumanObject(i);
2898+ human *thuman = ObjMgr.GetHumanObject(i);
28992899 if( thuman->GetEnableFlag() == true ){
29002900 //死亡状態とチーム番号を取得
29012901 deadflag = thuman->GetDeadFlag();
@@ -3408,7 +3408,7 @@
34083408 if( (0 <= id)&&(id < MAX_HUMAN) ){
34093409 int param, hp;
34103410 HumanParameter data;
3411- human *thuman = ObjMgr.GeHumanObject(id);
3411+ human *thuman = ObjMgr.GetHumanObject(id);
34123412
34133413 //初期時のHPを取得
34143414 thuman->GetParamData(&param, NULL, NULL, NULL);
@@ -3429,7 +3429,7 @@
34293429 if( InvincibleID == id ){
34303430 //同じ番号が指定されたらなら、無効化
34313431 InvincibleID = -1;
3432- ObjMgr.GeHumanObject(id)->SetInvincibleFlag(false);
3432+ ObjMgr.GetHumanObject(id)->SetInvincibleFlag(false);
34333433 sprintf(str, "Not invincible Human[%d].", id);
34343434 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
34353435 }
@@ -3436,7 +3436,7 @@
34363436 else{
34373437 //既に誰かが指定されていたら、既に指定されている人を無効化
34383438 if( InvincibleID != -1 ){
3439- ObjMgr.GeHumanObject(InvincibleID)->SetInvincibleFlag(false);
3439+ ObjMgr.GetHumanObject(InvincibleID)->SetInvincibleFlag(false);
34403440 sprintf(str, "Not invincible Human[%d].", InvincibleID);
34413441 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
34423442 }
@@ -3443,7 +3443,7 @@
34433443
34443444 //新たに無敵状態の人を指定
34453445 InvincibleID = id;
3446- ObjMgr.GeHumanObject(id)->SetInvincibleFlag(true);
3446+ ObjMgr.GetHumanObject(id)->SetInvincibleFlag(true);
34473447 sprintf(str, "Invincible Human[%d].", id);
34483448 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
34493449 }
@@ -3453,7 +3453,7 @@
34533453 //殺害
34543454 if( GetCommandNum("kill", &id) == true ){
34553455 if( (0 <= id)&&(id < MAX_HUMAN) ){
3456- human *thuman = ObjMgr.GeHumanObject(id);
3456+ human *thuman = ObjMgr.GetHumanObject(id);
34573457 if( thuman->GetEnableFlag() == true ){
34583458 if( thuman->SetHP(0) == true ){
34593459 sprintf(str, "Killed Human[%d].", id);
@@ -3489,7 +3489,7 @@
34893489 //人を削除
34903490 if( GetCommandNum("delhuman", &id) == true ){
34913491 if( (0 <= id)&&(id < MAX_HUMAN) ){
3492- human *thuman = ObjMgr.GeHumanObject(id);
3492+ human *thuman = ObjMgr.GetHumanObject(id);
34933493 if( thuman->GetEnableFlag() == true ){
34943494
34953495 //人が持っている武器もすべて無効にする
@@ -3521,7 +3521,7 @@
35213521 int dummy;
35223522 class weapon *weaponlist[TOTAL_HAVEWEAPON];
35233523 for(int i=0; i<MAX_HUMAN; i++){
3524- human *thuman = ObjMgr.GeHumanObject(i);
3524+ human *thuman = ObjMgr.GetHumanObject(i);
35253525 if( thuman->GetEnableFlag() == true ){
35263526 thuman->GetWeapon(&dummy, weaponlist);
35273527 for(int j=0; j<TOTAL_HAVEWEAPON; j++){
--- trunk/objectmanager.cpp (revision 201)
+++ trunk/objectmanager.cpp (revision 202)
@@ -1625,7 +1625,7 @@
16251625 //! @brief 指定したデータ番号のhumanクラスを取得
16261626 //! @param id データ番号
16271627 //! @return 人オブジェクトのポインタ (無効なデータ番号で NULL)
1628-human* ObjectManager::GeHumanObject(int id)
1628+human* ObjectManager::GetHumanObject(int id)
16291629 {
16301630 if( (id < 0)||(MAX_HUMAN-1 < id) ){ return NULL; }
16311631 return &(HumanIndex[id]);
@@ -1635,7 +1635,7 @@
16351635 //! @return 人オブジェクト(プレイヤー)のポインタ
16361636 human* ObjectManager::GetPlayerHumanObject()
16371637 {
1638- return GeHumanObject(Player_HumanID);
1638+ return GetHumanObject(Player_HumanID);
16391639 }
16401640
16411641 //! @brief 指定したhumanポインタのデータ番号を取得
--- trunk/objectmanager.h (revision 201)
+++ trunk/objectmanager.h (revision 202)
@@ -140,7 +140,7 @@
140140 void SetFriendlyFireFlag(bool flag);
141141 int GetPlayerID();
142142 void SetPlayerID(int id);
143- human* GeHumanObject(int id);
143+ human* GetHumanObject(int id);
144144 human* GetPlayerHumanObject();
145145 int GetHumanObjectID(human* object);
146146 weapon* GetWeaponObject(int id);
--- trunk/sound.h (revision 201)
+++ trunk/sound.h (revision 202)
@@ -32,7 +32,7 @@
3232 #ifndef SOUND2_H
3333 #define SOUND2_H
3434
35-#define MAX_LOADSOUND 24 //!< サウンドを読み込める最大数(ezds.dll)
35+#define MAX_LOADSOUND 24 //!< サウンドを読み込める最大数
3636 #define MAX_SOUNDLISTS 100 //!< サウンドを再生する最大数(DirectSound)
3737 #define MAX_SOUNDDIST 335 //!< サウンドを再生する最大距離
3838