mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-08 12:17:12 -04:00
Use composition instead of inheritance for fganon
This commit is contained in:
@@ -14,8 +14,9 @@ class mDoExt_McaMorf;
|
||||
class mDoExt_brkAnm;
|
||||
class mDoExt_btkAnm;
|
||||
|
||||
class fganon_class : public fopEn_enemy_c {
|
||||
class fganon_class {
|
||||
public:
|
||||
/* 0x000 */ fopEn_enemy_c actor;
|
||||
/* 0x2AC */ request_of_phase_process_class mPhs1;
|
||||
/* 0x2B4 */ request_of_phase_process_class mPhs2;
|
||||
/* 0x2BC */ u8 m2BC;
|
||||
|
||||
+294
-277
File diff suppressed because it is too large
Load Diff
@@ -129,7 +129,7 @@ static void move(fgmahou_class* i_this) {
|
||||
break;
|
||||
}
|
||||
|
||||
i_this->mTargetPos = fganon2->eyePos;
|
||||
i_this->mTargetPos = fganon2->actor.eyePos;
|
||||
i_this->mTargetPos.y -= cM_rndFX(50.0f) + 50.0f;
|
||||
i_this->home.angle.y -= 0x8000;
|
||||
i_this->home.angle.x *= -1;
|
||||
|
||||
Reference in New Issue
Block a user