Start naviMgr.cpp

This commit is contained in:
HeartPiece 2023-03-16 19:22:45 +11:00
parent f397561a31
commit 84dd43011a
6 changed files with 121 additions and 2580 deletions

2
.vscode/warnings.h vendored
View File

@ -1,4 +1,6 @@
// disables the "too many characters in character constant" intellisense error, because we have u64 constants all over the place
#pragma diag_suppress 26
// disables the "invalid multibyte character sequence" error since we have to escape shift-jis misreads a lot
#pragma diag_suppress 870
// disables the "invalid arguments for operator new" error
#pragma diag_suppress 1767

View File

@ -117,7 +117,7 @@
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/gameGeneratorCache.cpp">gameGeneratorCache.cpp</a> | 46523 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/gameCaveInfo.cpp">gameCaveInfo.cpp</a> | 49577 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/itemGate.cpp">itemGate.cpp</a> | 50044 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/pelletCarcass.cpp">pelletCarcass.cpp</a> | 55314 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/gameGenerator.cpp">gameGenerator.cpp</a> | 55928 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/cellPyramid.cpp">cellPyramid.cpp</a> | 57895 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/gameSeaMgr.cpp">gameSeaMgr.cpp</a> | 60181 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKandoU/naviMgr.cpp">naviMgr.cpp</a> | 60041 |
### <section id="plugProjectKonoU">plugProjectKonoU</section>
| File | Size (bytes) | File | Size (bytes) |

View File

@ -214,7 +214,20 @@ struct FakePiki : public Creature, public SysShape::MotionListener {
struct FakePikiParms : public CreatureParms {
struct Parms : public Parameters {
Parms(); // _(weak)
Parms()
: Parameters(nullptr, "FakePiki::Parms")
, _0E8(this, 'fp01', "ASIBUMI 開始スピード", 5.0f, 0.0f, 500.0f) // 'ASIBUMI start speed' (stepping?)
, _110(this, 'fp02', "WALK 開始スピード", 8.0f, 0.0f, 500.0f) // 'WALK start speed'
, _138(this, 'fp03', "RUN 開始スピード", 20.0f, 0.0f, 500.0f) // 'RUN start speed'
, _160(this, 'fp04', "ESCAPE 開始スピード", 95.0f, 0.0f, 500.0f) // 'ESCAPE start speed'
, _188(this, 'fp04', "WALK 再生フレーム数(min)", 60.0f, 0.0f, 300.0f) // 'WALK playback frame count (min)'
, _1B0(this, 'fp05', "WALK 再生フレーム数(max)", 90.0f, 0.0f, 300.0f) // 'WALK playback frame count (max)'
, _1D8(this, 'fp06', "RUN 再生フレーム数(min)", 40.0f, 0.0f, 300.0f) // 'RUN playback frame count (min)'
, _200(this, 'fp07', "RUN 再生フレーム数(max)", 60.0f, 0.0f, 300.0f) // 'RUN playback frame count (max)'
, _228(this, 'fp08', "ESCAPE 再生フレーム数(min)", 60.0f, 0.0f, 300.0f) // 'ESCAPE playback frame count (min)'
, _250(this, 'fp09', "ESCAPE 再生フレーム数(max)", 90.0f, 0.0f, 300.0f) // 'ESCAPE playback frame count (max)'
{
}
// _DC-_E8 = Parameters
Parm<f32> _0E8; // _0E8
@ -230,7 +243,10 @@ struct FakePikiParms : public CreatureParms {
// _278 = IParameters ptr
};
FakePikiParms(); // (weak)
FakePikiParms()
: mFakePikiParms()
{
}
virtual void read(Stream&); // _08 (weak)

View File

@ -294,7 +294,7 @@ struct NaviMgr : public MonoObjectMgr<Navi>, public JKRDisposer {
Navi* getDeadOrima(int);
void informOrimaDead(int);
void load();
void loadResources_f32();
void loadResources_float();
void setMovieDraw(bool);
void setupSoundViewerAndBas();
void setupNavi(Navi*);

View File

@ -6,7 +6,73 @@
namespace Game {
struct NaviParms : public FakePikiParms {
struct Parms : public Parameters {
Parms(); // (weak)
Parms()
: Parameters(nullptr, "Navi::Parms")
, mP000(this, 'p000', "アクション半径", 25.0f, 0.0f, 500.0f) // 'action radius'
, mP060(this, 'p060', "連続抜き距離", 200.0f, 0.0f, 1000.0f) // 'continuous pluck distance'
, mP062(this, 'p062', "抜き距離(onyon外)", 15.0f, 0.0f, 500.0f) // 'pluck distance (outside onyon)'
, mP001(this, 'p001', "ピキ呼び最大半径", 90.0f, 0.0f, 500.0f) // 'piki call max radius'
, mP053(this, 'p053', "ピキ呼び最小半径", 5.0f, 0.0f, 500.0f) // 'piki call min radius'
, mP002(this, 'p002', "ピキ呼び最大時間", 0.45f, 0.0f, 500.0f) // 'max call time'
, mP003(this, 'p003', "サークル消え時間", 1.0f, 0.0f, 500.0f) // 'circle disappearing time'
, mP004(this, 'p004', "移動速度", 160.0f, 0.0f, 500.0f) // 'movement speed'
, mP056(this, 'p056', "走る速さ(好調時)", 160.0f, 0.0f, 500.0f) // 'running speed (in good condition)' (lol)
, mP038(this, 'p038', "\示スケール", 1.2f, 0.1f, 10.0f) // 'display scale'
, mStick0(this, 'p005', "Stick 0", 0.001f, 0.0f, 1.0f)
, mStick01(this, 'p020', "Stick 01", 0.1f, 0.0f, 1.0f)
, mStick1(this, 'p006', "Stick 1", 0.8f, 0.0f, 1.0f)
, mStick2(this, 'p007', "Stick 2", 1.0f, 0.0f, 1.0f)
, mP008(this, 'p008', "すべり角度", 120.0f, 90.0f, 180.0f) // 'sliding angle'
, mP009(this, 'p009', "投げため限界時間", 2.5f, 0.0f, 10.0f) // 'time limit for throwing'
, mP010(this, 'p010', "投げ距離(Max)", 140.0f, 0.0f, 1000.0f) // 'throw distance (Max)'
, mP011(this, 'p011', "投げ距離(Min)", 140.0f, 0.0f, 500.0f) // 'throw distance (Min)'
, mP024(this, 'p024', "投げ高さ(Max)", 75.0f, 0.0f, 1000.0f) // 'throw height (Max)'
, mP025(this, 'p025', "投げ高さ(min)", 75.0f, 0.0f, 1000.0f) // 'throw height (min)'
, mP054(this, 'p054', "投げ高さ(黄色)", 115.0f, 0.0f, 1000.0f) // 'throw height (yellow)'
, mQ000(this, 'q000', "黒 投げ高さ", 30.0f, 0.0f, 150.0f) // 'black throw height'
, mQ001(this, 'q001', "白 投げ高さ", 75.0f, 0.0f, 150.0f) // 'white throw height'
, mP026(this, 'p026', "着地時間", 1.0f, 0.0f, 100.0f) // 'landing time'
, mP037(this, 'p037', "ピキをつかむ有効範囲", 15.0f, 0.0f, 200.0f) // 'effective range to grab piki'
, mP042(this, 'p042', "抜くループ回数", 0, 0, 10) // 'number of loops to pluck' (?)
, _698(this, 'p039', "ピキが待つ範囲", 15.0f, 0.0f, 200.0f) // 'piki wait range'
, mP040(this, 'p040', "ピキがフォーメーションを変える範囲", 40.0f, 0.0f, 200.0f) // 'range where piki changes formation'
, mP021(this, 'p021', "当たりサイズ", 8.0f, 0.0f, 100.0f) // 'hit size'
, mP041(this, 'p041', "地面当たりサイズ", 8.5f, 0.0f, 100.0f) // 'ground size'
, mP022(this, 'p022', "重さの逆数", 1.0f, 0.0f, 2000.0f) // 'inverse weight'
, mP023(this, 'p023', "エイミング回転スピード", 0.03f, 0.0f, 1.0f) // 'aiming rotation speed'
, mP031(this, 'p031', "つぶれ総時間", 2.0f, 0.0f, 10.0f) // 'total crush time'
, mP032(this, 'p032', "ぺったんこ時間", 1.0f, 0.0f, 10.0f) // 'flat time'
, mP033(this, 'p033', "押し開始時間", 0.8f, 0.0f, 10.0f) // 'press start time'
, mP034(this, 'p034', "押し開始スティック量", 0.3f, 0.0f, 1.0f) // 'press start stick amount'
, mP035(this, 'p035', "手ぶれ防止角度", 10.0f, 0.0f, 180.0f) // 'shake prevention angle'
, mP036(this, 'p036', "手ぶれ防止大きさ", 0.1f, 0.0f, 1.0f) // 'shake prevention magnitude'
, mP048(this, 'p048', "カーソ\ルみる時間", 0.85f, 0.0f, 60.0f) // 'cursor look time'
, mP049(this, 'p049', "ピキがしびれを切らす時間", 5.0f, 0.0f, 60.0f) // 'time for piki to lose its numbness' (?)
, mCStickNeutralThresh(this, 'p043', "ニュートラルスティック", 0.1f, 0.0f, 1.0f) // 'neutral stick'
, mP044(this, 'p044', "カーソ\ル移動スティック", 0.65f, 0.0f, 1.0f) // 'cursor movement stick'
, _918(this, 'p048', "クランプスティック", 0.85f, 0.0f, 1.0f) // 'clamp stick'
, mP045(this, 'p045', "カーソ\ル移動最小半径", 0.0f, 0.0f, 1000.0f) // 'min cursor movement radius'
, mP046(this, 'p046', "カーソ\ル移動最大半径", 100.0f, 0.0f, 2000.0f) // 'max cursor movement radius'
, mP047(this, 'p047', "カーソ\ル移動スピード", 300.0f, 0.0f, 1000.0f) // 'cursor movement speed'
, mMaxHealth(this, 'p050', "ライフ", 100.0f, 0.0f, 1000.0f) // 'life'
, mP051(this, 'p051', "攻撃力", 10.0f, 0.0f, 1000.0f) // 'attack power'
, mP052(this, 'p052', "攻撃範囲", 10.0f, 0.0f, 100.0f) // 'attack range'
, mP055(this, 'p055', "カーソ\ルカウント", 1, 0, 10) // 'cursor count'
, mP057(this, 'p057', "kinoko Flick Count", 3, 0, 16) // 'mushroom flick count' (?)
, mP058(this, 'p058', "bury Key Count", 2, 0, 16)
, mP059(this, 'p059', "bury Exit Count", 2, 0, 16)
, mP061(this, 'p061', "寄りカメラズームアウト(frame)", 80, 0, 1000) // 'close camera zoom out (frame)'
, mQ002(this, 'q002', "隊列 MAX Lv0", 10, 1, 100) // 'formation MAX Lv0'
, mQ003(this, 'q003', "隊列 MAX Lv1", 25, 1, 100) // 'formation MAX Lv1'
, mQ004(this, 'q004', "隊列 MAX Lv2", 50, 1, 100) // 'formation MAX Lv2'
, mQ005(this, 'q005', "隊列 MAX Lv3", 100, 1, 100) // 'formation MAX Lv3'
, mQ006(this, 'q006', "ダッシュブーツ速度", 240.0f, 0.0f, 500.0f) // 'rush boot speed'
, mQ007(this, 'q007', "広範囲の笛半径", 200.0f, 0.0f, 300.0f) // 'wide whistle radius'
, mQ008(this, 'q008', "シールドダメージ軽減率", 0.5f, 0.0f, 1.0f) // 'shield damage reduction rate'
, mQ009(this, 'q009', "シーソ\ーで使う重さ", 2, 0, 10) // 'weight for seesaw'
, mQ010(this, 'q010', "電気ゲートダメージ", 10.0f, 0.0f, 200.0f) // 'electric gate damage'
{
}
// _27C-_288 = Parameters
Parm<f32> mP000; // _288
@ -75,7 +141,13 @@ struct NaviParms : public FakePikiParms {
// _C60 = IParameters ptr
};
NaviParms(); // (weak)
NaviParms()
: mNaviParms()
{
mCreatureProps.mProps.mFriction.mValue = 1.0f;
mCreatureProps.mProps.mFaceDirAdjust.mValue = 0.5f;
mCreatureProps.mProps.mAccel.mValue = 0.1f;
}
virtual void read(Stream&); // _08 (weak)

File diff suppressed because it is too large Load Diff