Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
Actor Struct Reference

A character on the field (FIELDSTG_createActor): the player (kind 0) and the other characters. More...

#include <field/field_map.h>

Collaboration diagram for Actor:
[legend]

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)
 

Detailed Description

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.

Field Documentation

◆ id

s32 Actor::id

Definition at line 335 of file field_map.h.

◆ key1

◆ key2

◆ state

◆ substate

◆ step

◆ counter

s32 Actor::counter

Definition at line 335 of file field_map.h.

Referenced by FIELDSTG_playClimbSounds(), FIELDSTG_playStepSounds(), runGauge(), and runUsed().

◆ paused

s32 Actor::paused

Definition at line 335 of file field_map.h.

◆ childCount

s32 Actor::childCount

Definition at line 335 of file field_map.h.

◆ children

void* Actor::children

Definition at line 335 of file field_map.h.

Referenced by FIELDSTG_launchActor(), and FIELDSTG_startActorGauge().

◆ setState

void(* Actor::setState) (struct Actor *task, s32 state)

Definition at line 335 of file field_map.h.

Referenced by killCharacters(), runTalk(), and runUsed().

◆ setSubstate

◆ setStep

void(* Actor::setStep) (struct Actor *task, s32 step)

Definition at line 335 of file field_map.h.

◆ setCounter

void(* Actor::setCounter) (struct Actor *task, s32 counter)

Definition at line 335 of file field_map.h.

◆ nextState

void(* Actor::nextState) (struct Actor *task)

Definition at line 335 of file field_map.h.

Referenced by FIELDSTG_updateActor().

◆ nextSubstate

void(* Actor::nextSubstate) (struct Actor *task)

Definition at line 335 of file field_map.h.

◆ nextStep

◆ tickCounter

void(* Actor::tickCounter) (struct Actor *task)

Definition at line 335 of file field_map.h.

◆ update

void(* Actor::update) ()

Definition at line 335 of file field_map.h.

◆ destroy

void(* Actor::destroy) (struct Actor *task)

Definition at line 335 of file field_map.h.

◆ pos

◆ tile

◆ dir

◆ z

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().

◆ speed

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().

◆ image

struct ActorImage* Actor::image

Definition at line 341 of file field_map.h.

Referenced by FIELDSTG_animateActor(), FIELDSTG_createActor(), and FIELDSTG_drawActor().

◆ fieldImage

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().

◆ hasShadow

◆ depth

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().

◆ entry

struct FieldActorEntry* Actor::entry

what created it, or NULL

Definition at line 345 of file field_map.h.

Referenced by FIELDSTG_createActor(), and runTalk().

◆ halfWidth

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().

◆ flying

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().

◆ talkPartner

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().

◆ climbSide

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().

◆ climbHeight

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().

◆ wallHeight

s32 Actor::wallHeight

◆ pad98

s32 Actor::pad98

never read or written

Definition at line 352 of file field_map.h.

◆ animFile

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().

◆ animSet

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().

◆ loadedSet

s32 Actor::loadedSet

the set setAnims was loaded for

Definition at line 355 of file field_map.h.

Referenced by FIELDSTG_animateActor().

◆ setAnims

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().

◆ walks

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().

◆ reloadImage

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().

◆ zSpeed

s32 Actor::zSpeed

added to z each frame

Definition at line 359 of file field_map.h.

Referenced by accelerateFlight(), and FIELDSTG_controlFlight().

◆ voice

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().

◆ padCA

s16 Actor::padCA

never read or written

Definition at line 361 of file field_map.h.

◆ animPos

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().

◆ animTime

s32 Actor::animTime

the frame's time left

Definition at line 363 of file field_map.h.

Referenced by FIELDSTG_animateActor(), and FIELDSTG_setActorAnim().

◆ frame

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().

◆ frameWidth

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().

◆ frameHeight

s16 Actor::frameHeight

and its height

Definition at line 366 of file field_map.h.

Referenced by FIELDSTG_animateActor(), and FIELDSTG_drawActor().

◆ animDone

◆ walking

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().

◆ goalX

s32 Actor::goalX

the tile it walks to

Definition at line 369 of file field_map.h.

Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().

◆ goalY

s32 Actor::goalY

Definition at line 370 of file field_map.h.

Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().

◆ goalDir

s32 Actor::goalDir

the direction it then faces

Definition at line 371 of file field_map.h.

Referenced by FIELDSTG_setActorGoal(), and FIELDSTG_walkToGoal().

◆ talkActions

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().

◆ keepsDir

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().

◆ trail

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().

◆ control

◆ scriptFlag

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().

◆ walkInDir

void(* Actor::walkInDir) (struct Actor *, s32 dir)

Definition at line 378 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ climbUp

void(* Actor::climbUp) ()

Definition at line 379 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ climbDown

void(* Actor::climbDown) ()

Definition at line 380 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ dropDown

void(* Actor::dropDown) ()

Definition at line 381 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ playGauge

void(* Actor::playGauge) ()

Definition at line 382 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ warp

void(* Actor::warp) (struct Actor *, SlotDest *dest, s32 kind)

Definition at line 383 of file field_map.h.

Referenced by FIELDSTG_setOffTrigger(), and setActorMethods().

◆ unused128

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.

◆ startWalk

void(* Actor::startWalk) (struct Actor *)

Definition at line 386 of file field_map.h.

Referenced by FIELDSTG_runEvent(), and setActorMethods().

◆ resetControl

void(* Actor::resetControl) (struct Actor *)

Definition at line 387 of file field_map.h.

Referenced by FIELDSTG_runLaunch(), releaseEventActors(), and setActorMethods().

◆ setDir

void(* Actor::setDir) (struct Actor *, s32 dir)

Definition at line 388 of file field_map.h.

Referenced by setActorMethods().

◆ isAnimDone

s32(* Actor::isAnimDone) (struct Actor *)

Definition at line 389 of file field_map.h.

Referenced by FIELDSTG_runEvent(), FIELDSTG_waitAnimDone(), and setActorMethods().

◆ setGoal

void(* Actor::setGoal) (struct Actor *, s32, s32, s32)

Definition at line 390 of file field_map.h.

Referenced by FIELDSTG_runEvent(), FIELDSTG_runLaunch(), and setActorMethods().

◆ isWalking

s32(* Actor::isWalking) (struct Actor *)

◆ setAnim

void(* Actor::setAnim) (struct Actor *, s32)

Definition at line 392 of file field_map.h.

Referenced by setActorMethods().

◆ setPose

void(* Actor::setPose) (struct Actor *, s32, s32 dir)

Definition at line 393 of file field_map.h.

Referenced by FIELDSTG_setEventPose(), and setActorMethods().

◆ getFacingTile

void(* Actor::getFacingTile) (struct Actor *, Vec2 *out)

◆ startSlide

void(* Actor::startSlide) (struct Actor *, s32 dir)

Definition at line 395 of file field_map.h.

Referenced by FIELDSTG_offerTrigger(), and setActorMethods().

◆ stopSlide

void(* Actor::stopSlide) (struct Actor *)

Definition at line 396 of file field_map.h.

Referenced by FIELDSTG_offerTrigger(), and setActorMethods().

◆ launch

void(* Actor::launch) (struct Actor *, SlotDest *dest)

Definition at line 397 of file field_map.h.

Referenced by FIELDSTG_offerTrigger(), FIELDSTG_setOffTrigger(), and setActorMethods().


The documentation for this struct was generated from the following file: