|
Digimon World 3 decomp
The European version, SLES_039.36
|
A character on the field (FIELDSTG_createActor): the player (kind 0) and the other characters. More...
#include <field/field_map.h>
Data Fields | |
| s32 | id |
| s32 | key1 |
| s32 | key2 |
| s32 | state |
| s32 | substate |
| s32 | step |
| s32 | counter |
| s32 | paused |
| s32 | childCount |
| void * | children |
| void(* | setState )(struct Actor *task, s32 state) |
| void(* | setSubstate )(struct Actor *task, s32 substate) |
| void(* | setStep )(struct Actor *task, s32 step) |
| void(* | setCounter )(struct Actor *task, s32 counter) |
| void(* | nextState )(struct Actor *task) |
| void(* | nextSubstate )(struct Actor *task) |
| void(* | nextStep )(struct Actor *task) |
| void(* | tickCounter )(struct Actor *task) |
| void(* | update )() |
| void(* | destroy )(struct Actor *task) |
| Vec2 | pos |
| Vec2 | tile |
| s32 | dir |
| s32 | z |
| how high it is off the ground, in 1/256 pixels (drawn that much higher) | |
| s32 | speed |
| 0x400, 0x4CC in PAL's 50 Hz | |
| struct ActorImage * | image |
| struct FieldImage * | fieldImage |
| the field's image, for the shadow | |
| s32 | hasShadow |
| drawn with a shadow | |
| s32 | depth |
| the layer's ordering table entry | |
| struct FieldActorEntry * | entry |
| what created it, or NULL | |
| s32 | halfWidth |
| half its width (FIELDSTG_actorWidths): its box's half width, and half that its half height | |
| s32 | flying |
| the flying player (FIELDSTG_controlFlight) | |
| struct Actor * | talkPartner |
| the actor that talks to it | |
| s32 | climbSide |
| a climb shifts it a tile right (1) or left (0) | |
| s32 | climbHeight |
| how high it has climbed, in 1/256 pixels (its shadow stays below) | |
| s32 | wallHeight |
| the top of the climb | |
| s32 | pad98 |
| never read or written | |
| s32 | animFile |
| its animations' file and index (FIELDSTG_fileEntries), or 0 | |
| s32 | animSet |
| the animation set it plays (setAnim) | |
| s32 | loadedSet |
| the set setAnims was loaded for | |
| s32 | setAnims [5] |
| the set's animations, for the directions 0 to 4 | |
| s32 | walks |
| the pad walks it (ACTOR_WALK) instead of running | |
| s32 | reloadImage |
| set to reload the frame's image | |
| s32 | zSpeed |
| added to z each frame | |
| s16 | voice |
| a sound voice, or -1 | |
| s16 | padCA |
| never read or written | |
| s32 | animPos |
| the next word of the direction's frames | |
| s32 | animTime |
| the frame's time left | |
| s32 | frame [4] |
| the frame's image, the one loaded, and two values | |
| s16 | frameWidth |
| the loaded image's width in pixels | |
| s16 | frameHeight |
| and its height | |
| s32 | animDone |
| the animation ended (isAnimDone) | |
| s32 | walking |
| walking to the goal (setGoal, FIELDSTG_walkToGoal) | |
| s32 | goalX |
| the tile it walks to | |
| s32 | goalY |
| s32 | goalDir |
| the direction it then faces | |
| u16 * | talkActions |
| the talk's flag actions, applied when it ends, or NULL | |
| s32 | keepsDir |
| doesn't turn to the one who talks to it (characters 0x28-0x2A, 0x3E and 0x11A) | |
| struct Trail * | trail |
| a follower's: the leader's steps | |
| void(* | control )(struct Actor *) |
| its update by kind, or NULL (resetControl) | |
| s32 | scriptFlag |
| cleared by FIELDSTG_clearScriptFlag; nothing in FIELDSTG or the stages reads it | |
| void(* | walkInDir )(struct Actor *, s32 dir) |
| void(* | climbUp )() |
| void(* | climbDown )() |
| void(* | dropDown )() |
| void(* | playGauge )() |
| void(* | warp )(struct Actor *, SlotDest *dest, s32 kind) |
| void(* | unused128 )() |
| a method slot between warp and startWalk that FIELDSTG_createActor never sets and nothing calls | |
| void(* | startWalk )(struct Actor *) |
| void(* | resetControl )(struct Actor *) |
| void(* | setDir )(struct Actor *, s32 dir) |
| s32(* | isAnimDone )(struct Actor *) |
| void(* | setGoal )(struct Actor *, s32, s32, s32) |
| s32(* | isWalking )(struct Actor *) |
| void(* | setAnim )(struct Actor *, s32) |
| void(* | setPose )(struct Actor *, s32, s32 dir) |
| void(* | getFacingTile )(struct Actor *, Vec2 *out) |
| void(* | startSlide )(struct Actor *, s32 dir) |
| void(* | stopSlide )(struct Actor *) |
| void(* | launch )(struct Actor *, SlotDest *dest) |
A character on the field (FIELDSTG_createActor): the player (kind 0) and the other characters.
Registered with id FIELD_TASK_ACTOR, key1 = character, key2 = kind. x and y are in 1/256 tile units.
Definition at line 334 of file field_map.h.
| s32 Actor::id |
Definition at line 335 of file field_map.h.
| s32 Actor::key1 |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_animateActor(), FIELDSTG_createActor(), FIELDSTG_getSpeechPos(), FIELDSTG_playStepSounds(), FIELDSTG_runEvent(), FIELDSTG_talkToActorAt(), runTalk(), and runUsed().
| s32 Actor::key2 |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_playClimbSounds(), FIELDSTG_playStepSounds(), FIELDSTG_resetActorControl(), FIELDSTG_runActorAction(), and FIELDSTG_updateActor().
| s32 Actor::state |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_drawActor(), FIELDSTG_talkToActorAt(), FIELDSTG_updateActor(), and FIELDSTG_updateActorIcon().
| s32 Actor::substate |
Definition at line 335 of file field_map.h.
Referenced by accelerateFlight(), FIELDSTG_controlClimb(), FIELDSTG_drainTrail(), FIELDSTG_followLeader(), FIELDSTG_moveByPad(), FIELDSTG_runActorAction(), FIELDSTG_startActorSlide(), FIELDSTG_stopActorSlide(), FIELDSTG_talkToActorAt(), FIELDSTG_updateActorIcon(), FIELDSTG_updateTriggers(), and flyOrFloat().
| s32 Actor::step |
Definition at line 335 of file field_map.h.
Referenced by beginActorAnim(), FIELDSTG_runActorAction(), runClimbDown(), runClimbOffBottom(), runClimbOffTop(), runClimbUp(), runDrop(), runGauge(), runGetOnWall(), runSearch(), runSlide(), runStop(), runStopSlide(), runTalk(), runUse(), and runUsed().
| s32 Actor::counter |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_playClimbSounds(), FIELDSTG_playStepSounds(), runGauge(), and runUsed().
| s32 Actor::paused |
Definition at line 335 of file field_map.h.
| s32 Actor::childCount |
Definition at line 335 of file field_map.h.
| void* Actor::children |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_launchActor(), and FIELDSTG_startActorGauge().
Definition at line 335 of file field_map.h.
Referenced by killCharacters(), runTalk(), and runUsed().
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_controlClimb(), FIELDSTG_controlPlayer(), FIELDSTG_drainTrail(), FIELDSTG_followLeader(), FIELDSTG_launchActor(), FIELDSTG_moveByPad(), FIELDSTG_runActorAction(), FIELDSTG_setActorPose(), FIELDSTG_startActorGauge(), FIELDSTG_startActorSlide(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_stopActorSlide(), FIELDSTG_talkToActorAt(), FIELDSTG_walkActorInDir(), FIELDSTG_walkToGoal(), FIELDSTG_warpActor(), flyOrFloat(), openFieldMenu(), runClimbDown(), runClimbOffBottom(), runClimbOffTop(), runClimbUp(), runGetOnWall(), runStop(), runStopSlide(), runTalk(), standAgain(), and updateEvent9015().
Definition at line 335 of file field_map.h.
Definition at line 335 of file field_map.h.
| void(* Actor::nextState) (struct Actor *task) |
Definition at line 335 of file field_map.h.
Referenced by FIELDSTG_updateActor().
| void(* Actor::nextSubstate) (struct Actor *task) |
Definition at line 335 of file field_map.h.
| void(* Actor::nextStep) (struct Actor *task) |
Definition at line 335 of file field_map.h.
Referenced by beginActorAnim(), FIELDSTG_runActorAction(), runClimbDown(), runClimbOffBottom(), runClimbOffTop(), runClimbUp(), runDrop(), runGauge(), runGetOnWall(), runSearch(), runSlide(), runStop(), runTalk(), runUse(), and runUsed().
| void(* Actor::tickCounter) (struct Actor *task) |
Definition at line 335 of file field_map.h.
| void(* Actor::update) () |
Definition at line 335 of file field_map.h.
| void(* Actor::destroy) (struct Actor *task) |
Definition at line 335 of file field_map.h.
| Vec2 Actor::pos |
Definition at line 336 of file field_map.h.
Referenced by createCharacters(), drawActorMark(), FIELDSTG_checkFlightProbe(), FIELDSTG_closeField(), FIELDSTG_controlFlight(), FIELDSTG_createActor(), FIELDSTG_drainTrail(), FIELDSTG_followLeader(), FIELDSTG_playBattleTransition(), FIELDSTG_runActorAction(), FIELDSTG_runEvent(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_updateActor(), FIELDSTG_updateLift(), FIELDSTG_walkToGoal(), flyToDest(), openFieldMenu(), runClimbOffTop(), runDrop(), runSlide(), updateRisers(), updateTileLift(), and updateTileTimer().
| Vec2 Actor::tile |
Definition at line 337 of file field_map.h.
Referenced by FIELDSTG_closeField(), FIELDSTG_countBattleSteps(), FIELDSTG_createActor(), FIELDSTG_createTalk(), FIELDSTG_drawActor(), FIELDSTG_drawBalloon(), FIELDSTG_findActorAt(), FIELDSTG_findTrigger(), FIELDSTG_getFacingTile(), FIELDSTG_getSpeechPos(), FIELDSTG_isTileFree(), FIELDSTG_runActorAction(), FIELDSTG_runLaunch(), FIELDSTG_startActorGauge(), FIELDSTG_startAreaBattle(), FIELDSTG_updateActor(), FIELDSTG_updateActorIcon(), FIELDSTG_updateCamera(), FIELDSTG_updateSpotEffect(), FIELDSTG_warpActor(), flyToDest(), runSlide(), and updateEvent9015().
| s32 Actor::dir |
Definition at line 338 of file field_map.h.
Referenced by createCharacters(), FIELDSTG_animateActor(), FIELDSTG_checkFlightProbes(), FIELDSTG_closeField(), FIELDSTG_createActor(), FIELDSTG_createTalk(), FIELDSTG_drainTrail(), FIELDSTG_drawActor(), FIELDSTG_findTrigger(), FIELDSTG_followLeader(), FIELDSTG_getFacingTile(), FIELDSTG_launchActor(), FIELDSTG_moveByPad(), FIELDSTG_pickViewTiles(), FIELDSTG_playBattleTransition(), FIELDSTG_runActorAction(), FIELDSTG_runLaunch(), FIELDSTG_setActorDir(), FIELDSTG_setActorPose(), FIELDSTG_startActorGauge(), FIELDSTG_startActorSlide(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_updateSpotEffect(), FIELDSTG_walkActorInDir(), FIELDSTG_walkToGoal(), FIELDSTG_warpActor(), flyToDest(), openFieldMenu(), runClimbOffBottom(), runSlide(), runTalk(), and turnInFlight().
| s32 Actor::z |
how high it is off the ground, in 1/256 pixels (drawn that much higher)
Definition at line 339 of file field_map.h.
Referenced by FIELDSTG_checkFlightProbe(), FIELDSTG_controlFlight(), FIELDSTG_createActor(), FIELDSTG_drawActor(), FIELDSTG_drawBalloon(), FIELDSTG_updateActor(), and FIELDSTG_updateCamera().
| s32 Actor::speed |
0x400, 0x4CC in PAL's 50 Hz
Definition at line 340 of file field_map.h.
Referenced by FIELDSTG_checkFlightProbes(), FIELDSTG_controlFlight(), FIELDSTG_createActor(), FIELDSTG_runActorAction(), and runSlide().
| struct ActorImage* Actor::image |
Definition at line 341 of file field_map.h.
Referenced by FIELDSTG_animateActor(), FIELDSTG_createActor(), and FIELDSTG_drawActor().
| struct FieldImage* Actor::fieldImage |
the field's image, for the shadow
Definition at line 342 of file field_map.h.
Referenced by FIELDSTG_createActor(), and FIELDSTG_drawActor().
| s32 Actor::hasShadow |
drawn with a shadow
Definition at line 343 of file field_map.h.
Referenced by beginActorAnim(), FIELDSTG_createActor(), FIELDSTG_drawActor(), FIELDSTG_runActorAction(), FIELDSTG_runLaunch(), FIELDSTG_startClimbDown(), FIELDSTG_startDrop(), flyToDest(), handleCommand814(), runClimbOffTop(), and runDrop().
| s32 Actor::depth |
the layer's ordering table entry
Definition at line 344 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_drawActor(), FIELDSTG_followLeader(), FIELDSTG_offerTrigger(), and takePartyDepth().
| struct FieldActorEntry* Actor::entry |
what created it, or NULL
Definition at line 345 of file field_map.h.
Referenced by FIELDSTG_createActor(), and runTalk().
| s32 Actor::halfWidth |
half its width (FIELDSTG_actorWidths): its box's half width, and half that its half height
Definition at line 346 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_findActorAt(), and FIELDSTG_isTileFree().
| s32 Actor::flying |
the flying player (FIELDSTG_controlFlight)
Definition at line 347 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_runActorAction(), FIELDSTG_talkToActorAt(), and giveControlBack().
| struct Actor* Actor::talkPartner |
the actor that talks to it
Definition at line 348 of file field_map.h.
Referenced by FIELDSTG_talkToActorAt(), and runTalk().
| s32 Actor::climbSide |
a climb shifts it a tile right (1) or left (0)
Definition at line 349 of file field_map.h.
Referenced by FIELDSTG_runActorAction(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_updateActorIcon(), runClimbOffTop(), and runDrop().
| s32 Actor::climbHeight |
how high it has climbed, in 1/256 pixels (its shadow stays below)
Definition at line 350 of file field_map.h.
Referenced by FIELDSTG_drawActor(), FIELDSTG_restorePlayerControl(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_updateActor(), runClimbDown(), runClimbUp(), and runDrop().
| s32 Actor::wallHeight |
the top of the climb
Definition at line 351 of file field_map.h.
Referenced by FIELDSTG_runActorAction(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), runClimbOffTop(), runClimbUp(), and runDrop().
| s32 Actor::pad98 |
never read or written
Definition at line 352 of file field_map.h.
| s32 Actor::animFile |
its animations' file and index (FIELDSTG_fileEntries), or 0
Definition at line 353 of file field_map.h.
Referenced by FIELDSTG_animateActor(), FIELDSTG_createActor(), FIELDSTG_updateActor(), and runTalk().
| s32 Actor::animSet |
the animation set it plays (setAnim)
Definition at line 354 of file field_map.h.
Referenced by FIELDSTG_animateActor(), FIELDSTG_createActor(), FIELDSTG_setActorAnim(), and runDrop().
| s32 Actor::loadedSet |
the set setAnims was loaded for
Definition at line 355 of file field_map.h.
Referenced by FIELDSTG_animateActor().
| s32 Actor::setAnims[5] |
the set's animations, for the directions 0 to 4
Definition at line 356 of file field_map.h.
Referenced by FIELDSTG_animateActor().
| s32 Actor::walks |
the pad walks it (ACTOR_WALK) instead of running
Definition at line 357 of file field_map.h.
Referenced by FIELDSTG_moveByPad(), FIELDSTG_resetActorControl(), and FIELDSTG_walkToGoal().
| s32 Actor::reloadImage |
set to reload the frame's image
Definition at line 358 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and turnInFlight().
| s32 Actor::zSpeed |
added to z each frame
Definition at line 359 of file field_map.h.
Referenced by accelerateFlight(), and FIELDSTG_controlFlight().
| s16 Actor::voice |
a sound voice, or -1
Definition at line 360 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_updateActor(), flyOrFloat(), and stopFlightSound().
| s16 Actor::padCA |
never read or written
Definition at line 361 of file field_map.h.
| s32 Actor::animPos |
the next word of the direction's frames
Definition at line 362 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and FIELDSTG_setActorAnim().
| s32 Actor::animTime |
the frame's time left
Definition at line 363 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and FIELDSTG_setActorAnim().
| s32 Actor::frame[4] |
the frame's image, the one loaded, and two values
Definition at line 364 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and FIELDSTG_drawActor().
| s16 Actor::frameWidth |
the loaded image's width in pixels
Definition at line 365 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and FIELDSTG_drawActor().
| s16 Actor::frameHeight |
and its height
Definition at line 366 of file field_map.h.
Referenced by FIELDSTG_animateActor(), and FIELDSTG_drawActor().
| s32 Actor::animDone |
the animation ended (isAnimDone)
Definition at line 367 of file field_map.h.
Referenced by FIELDSTG_animateActor(), FIELDSTG_isActorAnimDone(), FIELDSTG_runActorAction(), FIELDSTG_setActorAnim(), runClimbOffBottom(), runClimbOffTop(), runDrop(), runGauge(), runGetOnWall(), runSearch(), runStop(), runUse(), and runUsed().
| s32 Actor::walking |
walking to the goal (setGoal, FIELDSTG_walkToGoal)
Definition at line 368 of file field_map.h.
Referenced by FIELDSTG_isActorWalking(), FIELDSTG_setActorGoal(), FIELDSTG_setActorPose(), and FIELDSTG_walkToGoal().
| s32 Actor::goalX |
the tile it walks to
Definition at line 369 of file field_map.h.
Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().
| s32 Actor::goalY |
Definition at line 370 of file field_map.h.
Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().
| s32 Actor::goalDir |
the direction it then faces
Definition at line 371 of file field_map.h.
Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().
| u16* Actor::talkActions |
the talk's flag actions, applied when it ends, or NULL
Definition at line 372 of file field_map.h.
Referenced by runTalk().
| s32 Actor::keepsDir |
doesn't turn to the one who talks to it (characters 0x28-0x2A, 0x3E and 0x11A)
Definition at line 373 of file field_map.h.
Referenced by FIELDSTG_createActor(), and runTalk().
| struct Trail* Actor::trail |
a follower's: the leader's steps
Definition at line 375 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_drainTrail(), FIELDSTG_followLeader(), and FIELDSTG_updateActor().
| void(* Actor::control) (struct Actor *) |
its update by kind, or NULL (resetControl)
Definition at line 376 of file field_map.h.
Referenced by FIELDSTG_createActor(), FIELDSTG_drainTrail(), FIELDSTG_haltPartners(), FIELDSTG_launchActor(), FIELDSTG_resetActorControl(), FIELDSTG_restorePlayerControl(), FIELDSTG_resumePartners(), FIELDSTG_runActorAction(), FIELDSTG_startActorGauge(), FIELDSTG_startActorSlide(), FIELDSTG_startActorWalk(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_talkToActorAt(), FIELDSTG_updateActor(), FIELDSTG_walkActorInDir(), FIELDSTG_warpActor(), giveControlBack(), runClimbDown(), runClimbUp(), runGetOnWall(), runSearch(), and runUse().
| s32 Actor::scriptFlag |
cleared by FIELDSTG_clearScriptFlag; nothing in FIELDSTG or the stages reads it
Definition at line 377 of file field_map.h.
Referenced by FIELDSTG_clearScriptFlag().
Definition at line 378 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
| void(* Actor::climbUp) () |
Definition at line 379 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
| void(* Actor::climbDown) () |
Definition at line 380 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
| void(* Actor::dropDown) () |
Definition at line 381 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
| void(* Actor::playGauge) () |
Definition at line 382 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
Definition at line 383 of file field_map.h.
Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().
| void(* Actor::unused128) () |
a method slot between warp and startWalk that FIELDSTG_createActor never sets and nothing calls
Definition at line 384 of file field_map.h.
| void(* Actor::startWalk) (struct Actor *) |
Definition at line 386 of file field_map.h.
Referenced by FIELDSTG_runEvent(), and setActorMethods().
| void(* Actor::resetControl) (struct Actor *) |
Definition at line 387 of file field_map.h.
Referenced by FIELDSTG_runLaunch(), releaseEventActors(), and setActorMethods().
Definition at line 388 of file field_map.h.
Referenced by setActorMethods().
Definition at line 389 of file field_map.h.
Referenced by FIELDSTG_runEvent(), FIELDSTG_waitAnimDone(), and setActorMethods().
Definition at line 390 of file field_map.h.
Referenced by FIELDSTG_runEvent(), FIELDSTG_runLaunch(), and setActorMethods().
Definition at line 391 of file field_map.h.
Referenced by FIELDSTG_runEvent(), FIELDSTG_runLaunch(), FIELDSTG_waitWalkDone(), and setActorMethods().
Definition at line 392 of file field_map.h.
Referenced by setActorMethods().
Definition at line 393 of file field_map.h.
Referenced by FIELDSTG_setEventPose(), and setActorMethods().
Definition at line 394 of file field_map.h.
Referenced by FIELDSTG_controlFlight(), FIELDSTG_controlPlayer(), and FIELDSTG_createActor().
Definition at line 395 of file field_map.h.
Referenced by FIELDSTG_offerTrigger(), and setActorMethods().
| void(* Actor::stopSlide) (struct Actor *) |
Definition at line 396 of file field_map.h.
Referenced by FIELDSTG_offerTrigger(), and setActorMethods().
Definition at line 397 of file field_map.h.
Referenced by FIELDSTG_offerTrigger(), FIELDSTG_setOffTrigger(), and setActorMethods().