|
SMG-Decomp
A decompilation of Super Mario Galaxy 1
|
The basis of a drawable actor that can contain states (see: Nerve) More...
#include <LiveActor.hpp>
Public Member Functions | |
| LiveActor (const char *pName) | |
| Constructs a new LiveActor instance. | |
| virtual void | init (JMapInfoIter const &) |
| Intializes the NameObj and can set various settings and construct necessary classes. | |
| virtual void | movement () |
| virtual void | calcAnim () |
| virtual void | calcViewAndEntry () |
| virtual void | appear () |
| virtual void | makeActorAppeared () |
| virtual void | kill () |
| virtual void | makeActorDead () |
| virtual bool | receiveMessage (u32, HitSensor *, HitSensor *) |
| virtual MtxPtr | getBaseMtx () const |
| Gets the base matrix of the model used for the actor. | |
| virtual MtxPtr | getTakingMtx () const |
| virtual void | startClipped () |
| virtual void | endClipped () |
| virtual void | control () |
| virtual void | calcAndSetBaseMtx () |
| Calculates and sets the base matrix of the actor. | |
| virtual void | updateHitSensor (HitSensor *) |
| virtual void | attackSensor (HitSensor *, HitSensor *) |
| virtual bool | receiveMsgPush (HitSensor *, HitSensor *) |
| virtual bool | receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *) |
| virtual bool | receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *) |
| virtual u32 | receiveMsgTake (HitSensor *, HitSensor *) |
| virtual u32 | receiveMsgTaken (HitSensor *, HitSensor *) |
| virtual u32 | receiveMsgThrow (HitSensor *, HitSensor *) |
| virtual u32 | receiveMsgApart (HitSensor *, HitSensor *) |
| virtual bool | receiveOtherMsg (u32, HitSensor *, HitSensor *) |
| void | calcAnmMtx () |
| void | setNerve (const Nerve *) |
| bool | isNerve (const Nerve *) const |
| s32 | getNerveStep () const |
| HitSensor * | getSensor (const char *pSensorName) const |
| Gets a sensor. | |
| void | initModelManagerWithAnm (const char *, const char *, bool) |
| void | initNerve (const Nerve *) |
| void | initHitSensor (int) |
| void | initBinder (f32, f32, u32) |
| void | initRailRider (const JMapInfoIter &) |
| void | initEffectKeeper (int, const char *, bool) |
| void | initSound (int, bool) |
| void | initShadowControllerList (u32) |
| void | initActorCollisionParts (const char *, HitSensor *, ResourceHolder *, MtxPtr, bool, bool) |
| void | initStageSwitch (const JMapInfoIter &) |
| void | initActorStarPointerTarget (f32, const TVec3f *, MtxPtr, TVec3f) |
| void | initActorLightCtrl () |
| void | addToSoundObjHolder () |
| void | updateBinder () |
| bool | isBinderValid (Binder *pBinder) |
| TVec3f * | getPosPtr () |
Public Member Functions inherited from NameObj | |
| NameObj (const char *pName) | |
| Constructs a new NameObj instance. | |
| virtual void | initAfterPlacement () |
| virtual void | draw () const |
| Draws the object. Does nothing until overridden. | |
| void | initWithoutIter () |
| Initializes a NameObj without a JMapInfoIter instance. | |
| void | setName (const char *pName) |
| Sets the NameObj's mName. | |
| void | executeMovement () |
| void | requestSuspend () |
| void | requestResume () |
| void | syncWithFlags () |
Public Attributes | |
| TVec3f | mPosition |
| 3D vector of the actor's position. | |
| TVec3f | mRotation |
| 3D vector of the actor's rotation. | |
| TVec3f | mScale |
| 3D vector of the actor's scale. | |
| TVec3f | mVelocity |
| 3D vector of the actor's velocity. | |
| TVec3f | mGravity |
| 3D vector of the actor's gravity. | |
| ModelManager * | mModelManager |
| A pointer to a ModelManager instance, used for drawing a 3D model. | |
| ActorAnimKeeper * | mAnimationKeeper |
| A pointer to a ActorAnimKeeper instance, used for storing and playing model animations. | |
| Spine * | mSpine |
| HitSensorKeeper * | mSensorKeeper |
| A pointer to a HitSensorKeeper instance, used for storing HitSensor instances. | |
| Binder * | mBinder |
| RailRider * | mRailRider |
| A pointer to a RailRider instance, used for allowing the actor to ride on paths. | |
| EffectKeeper * | mEffectKeeper |
| AudAnmSoundObject * | mSoundObject |
| LiveActorFlag | mFlags |
| Flags relating to drawing, animation calculation, etc. | |
| ShadowControllerList * | mShadowList |
| CollisionParts * | mCollisionParts |
| StageSwitchCtrl * | mStageSwitchCtrl |
| A pointer to a StageSwitchCtrl instance, used for activating and deactivating switches. | |
| StarPointerTarget * | mStarPointerTarget |
| ActorLightCtrl * | mActorLightCtrl |
| ActorPadAndCameraCtrl * | mCameraCtrl |
Public Attributes inherited from NameObj | |
| const char * | mName |
| A string to identify the NameObj. | |
| volatile u16 | mFlags |
| Flags in relation to movement. | |
| s16 | mExecutorIdx |
| The index into the NameObjExecuteInfo array. | |
The basis of a drawable actor that can contain states (see: Nerve)
Definition at line 24 of file LiveActor.hpp.
| LiveActor::LiveActor | ( | const char * | pName | ) |
Constructs a new LiveActor instance.
| pName | The new name assigned to the LiveActor. |
Definition at line 9 of file LiveActor.cpp.
|
inlinevirtual |
Definition at line 30 of file LiveActor.hpp.
|
virtual |
Intializes the NameObj and can set various settings and construct necessary classes.
| rIter | A reference to the JMapInfoIter that supplies BCSV information. |
Reimplemented from NameObj.
Reimplemented in AreaPolygon, SkeletalFishBabyRail, SkeletalFishBoss, SkeletalFishBossScarFlash, SkeletalFishBossRail, SkeletalFishGuard, PackunPetit, MessageSensorHolder, MirrorActor, MirrorReflectionModel, ModelObj, ModelObjNpc, PartsModel, Air, FileSelectEffect, Halo, PowerStarHalo, OceanRing, PlayerRacer, SeaGull, SeaGullGroup, Sky, SpaceInner, SphereSelector, TimerSwitch, AirBubble, AirBubbleGenerator, AnmModelObj, ArrowSwitch, ArrowSwitchMulti, AssemblyBlock, BallRail, BeeFlowerHover, BenefitItemInvincible, BenefitItemLifeUp, BenefitItemObj, BigFan, BlackHole, BreakableCage, CapsuleCage, ChipBase, ChooChooTrain, CocoNut, CoconutTree, Coin, CoinBox, CoinGroup, CoinSpot, CollapsePlane, CollisionBlocker, CrystalCage, CrystalCageMoving, CrystalSwitch, CutBushModelObj, DashRing, DeadLeaves, DynamicCollisionObj, FireBarBall, FireBar, FirePressure, FirePressureBullet, FlipPanel, FlipPanelObserver, Fountain, FountainBig, GeneralMapParts, GreenCaterpillarBigBody, GreenCaterpillarBig, HatchWaterPlanet, HipDropMoveObj, IceStep, ItemAppearStone, ItemBlock, KeySwitch, KillerGunnerSingle, LargeChain, LavaBallRisingPlanetLava, MagicBell, ManholeCover, MapObjActor, MapParts, MapPartsRailGuidePoint, MarblePlanet, MarblePlanetElectron, MarblePlanetElectronShadow, MechaKoopaPartsArm, MechaKoopaPartsHead, Note, NoteFairy, PowerStar, PowerStarAppearPoint, PressureMessenger, PressureBase, PunchingKinoko, RailMoveObj, RailMoveObjPress, RailMoveObjSwitchShadow, RailDemoMoveObj, ReverseGravityRoomPlanet, RotateMoveObj, SandCapsuleInsidePlanet, ShootingStar, SimpleMapObj, SimpleEnvironmentObj, SimpleMapObjFarMax, SimpleSeesawObj, SimpleMirrorObj, SimpleMirrorReflectionObj, UFOKinokoUnderConstruction, SimpleTimerObj, SnowplowSwitch, SpaceMine, SphereRailDash, SpinDriver, SpinDriverOperateRing, SpinDriverPathDrawer, SubmarineVolcanoBigColumn, Sun, SuperSpinDriver, TimeAppearObj, TreasureBoxCracked, TreasureSpot, UFOKinoko, WatchTowerRotateStep, WaterPressureBullet, WoodBox, NPCActor, MarioActor, Poihana, GlobalGravityObj, MarioLauncherAttractor, PTimerSwitch, and SwitchBox.
Definition at line 26 of file LiveActor.cpp.
|
virtual |
Reimplemented from NameObj.
|
virtual |
Reimplemented from NameObj.
|
virtual |
Reimplemented from NameObj.
|
virtual |
Definition at line 30 of file LiveActor.cpp.
|
virtual |
Definition at line 34 of file LiveActor.cpp.
|
virtual |
Definition at line 62 of file LiveActor.cpp.
|
virtual |
Gets the base matrix of the model used for the actor.
Reimplemented in MagicBell.
Definition at line 120 of file LiveActor.cpp.
|
virtual |
Definition at line 96 of file LiveActor.cpp.
|
virtual |
Calculates and sets the base matrix of the actor.
Reimplemented in SkeletalFishBoss, SkeletalFishGuard, PackunPetit, Poihana, MirrorReflectionModel, ModelObj, ModelObjNpc, PartsModel, SpotMarkLight, FileSelectEffect, SeaGull, ProjectionMapSky, ArrowSwitch, ArrowSwitchMulti, AssemblyBlock, BeeFlowerHover, BenefitItemObj, BlackHole, BreakableCage, CocoNut, Coin, CollapsePlane, CutBushModelObj, DashRing, FirePressureBullet, FlipPanel, GeneralMapParts, GreenCaterpillarBigBody, GreenCaterpillarBig, ItemAppearStone, KeySwitch, MapObjActor, MarblePlanetElectronShadow, Note, PowerStar, PressureBase, PTimerSwitch, PunchingKinoko, SimpleMirrorObj, SpinDriver, SuperSpinDriver, WatchTowerRotateStep, WaterPressureBullet, NPCActor, and MarioActor.
Reimplemented in Note.
Definition at line 230 of file LiveActor.cpp.
Definition at line 234 of file LiveActor.cpp.
| void LiveActor::setNerve | ( | const Nerve * | pNerve | ) |
Definition at line 100 of file LiveActor.cpp.
| bool LiveActor::isNerve | ( | const Nerve * | pNerve | ) | const |
Definition at line 104 of file LiveActor.cpp.
| s32 LiveActor::getNerveStep | ( | ) | const |
Definition at line 108 of file LiveActor.cpp.
| HitSensor * LiveActor::getSensor | ( | const char * | pSensorName | ) | const |
Gets a sensor.
| pSensorName | The name of the sensor to get. |
Definition at line 112 of file LiveActor.cpp.
| void LiveActor::initModelManagerWithAnm | ( | const char * | pName, |
| const char * | a2, | ||
| bool | a3 ) |
Definition at line 171 of file LiveActor.cpp.
| void LiveActor::initNerve | ( | const Nerve * | pNerve | ) |
Definition at line 181 of file LiveActor.cpp.
| void LiveActor::initHitSensor | ( | int | numSensors | ) |
Definition at line 185 of file LiveActor.cpp.
| void LiveActor::initRailRider | ( | const JMapInfoIter & | rIter | ) |
Definition at line 191 of file LiveActor.cpp.
| void LiveActor::initShadowControllerList | ( | u32 | numShadows | ) |
Definition at line 214 of file LiveActor.cpp.
| void LiveActor::initStageSwitch | ( | const JMapInfoIter & | rIter | ) |
Definition at line 220 of file LiveActor.cpp.
| void LiveActor::initActorLightCtrl | ( | ) |
Definition at line 226 of file LiveActor.cpp.
|
inline |
Definition at line 87 of file LiveActor.hpp.
|
inline |
Definition at line 91 of file LiveActor.hpp.
| TVec3f LiveActor::mPosition |
3D vector of the actor's position.
Definition at line 95 of file LiveActor.hpp.
| TVec3f LiveActor::mRotation |
3D vector of the actor's rotation.
Definition at line 96 of file LiveActor.hpp.
| TVec3f LiveActor::mScale |
3D vector of the actor's scale.
Definition at line 97 of file LiveActor.hpp.
| TVec3f LiveActor::mVelocity |
3D vector of the actor's velocity.
Definition at line 98 of file LiveActor.hpp.
| TVec3f LiveActor::mGravity |
3D vector of the actor's gravity.
Definition at line 99 of file LiveActor.hpp.
| ModelManager* LiveActor::mModelManager |
A pointer to a ModelManager instance, used for drawing a 3D model.
Definition at line 100 of file LiveActor.hpp.
| ActorAnimKeeper* LiveActor::mAnimationKeeper |
A pointer to a ActorAnimKeeper instance, used for storing and playing model animations.
Definition at line 101 of file LiveActor.hpp.
| Spine* LiveActor::mSpine |
Definition at line 102 of file LiveActor.hpp.
| HitSensorKeeper* LiveActor::mSensorKeeper |
A pointer to a HitSensorKeeper instance, used for storing HitSensor instances.
Definition at line 103 of file LiveActor.hpp.
| Binder* LiveActor::mBinder |
Definition at line 104 of file LiveActor.hpp.
| RailRider* LiveActor::mRailRider |
A pointer to a RailRider instance, used for allowing the actor to ride on paths.
Definition at line 105 of file LiveActor.hpp.
| EffectKeeper* LiveActor::mEffectKeeper |
Definition at line 106 of file LiveActor.hpp.
| AudAnmSoundObject* LiveActor::mSoundObject |
Definition at line 107 of file LiveActor.hpp.
| LiveActorFlag LiveActor::mFlags |
Flags relating to drawing, animation calculation, etc.
Definition at line 108 of file LiveActor.hpp.
| ShadowControllerList* LiveActor::mShadowList |
Definition at line 109 of file LiveActor.hpp.
| CollisionParts* LiveActor::mCollisionParts |
Definition at line 110 of file LiveActor.hpp.
| StageSwitchCtrl* LiveActor::mStageSwitchCtrl |
A pointer to a StageSwitchCtrl instance, used for activating and deactivating switches.
Definition at line 111 of file LiveActor.hpp.
| StarPointerTarget* LiveActor::mStarPointerTarget |
Definition at line 112 of file LiveActor.hpp.
| ActorLightCtrl* LiveActor::mActorLightCtrl |
Definition at line 113 of file LiveActor.hpp.
| ActorPadAndCameraCtrl* LiveActor::mCameraCtrl |
Definition at line 114 of file LiveActor.hpp.