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

The camera (FIELD_TASK_CAMERA, FIELDSTG_createCamera): it centers the field's layer on an actor or a spot, panning there unless it snaps, and shakes. More...

#include <field/field_mode.h>

Collaboration diagram for Camera:
[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 Camera *task, s32 state)
 
void(* setSubstate )(struct Camera *task, s32 substate)
 
void(* setStep )(struct Camera *task, s32 step)
 
void(* setCounter )(struct Camera *task, s32 counter)
 
void(* nextState )(struct Camera *task)
 
void(* nextSubstate )(struct Camera *task)
 
void(* nextStep )(struct Camera *task)
 
void(* tickCounter )(struct Camera *task)
 
void(* update )()
 
void(* destroy )(struct Camera *task)
 
Actor * target
 the actor it follows (substate 0)
 
Vec2 center
 where it looks
 
s32 shaking
 
s32 shake
 the step of the shake, 0-3
 
s16 voice
 of the shaking sound, or -1
 
Vec2 pan
 where it looks while it pans to center
 
s32 hasBounds
 
Vec2 bounds
 the map's size
 
s32 unk7C
 cleared with each new target; nothing reads it
 
s32 snap
 goes to center at once instead of panning
 
s32 targetId
 the target's character (Actor.key1)
 
s32 spotX
 the spot it looks at (substate 1)
 
s32 spotY
 

Detailed Description

The camera (FIELD_TASK_CAMERA, FIELDSTG_createCamera): it centers the field's layer on an actor or a spot, panning there unless it snaps, and shakes.

Definition at line 252 of file field_mode.h.

Field Documentation

◆ id

s32 Camera::id

Definition at line 253 of file field_mode.h.

◆ key1

s32 Camera::key1

Definition at line 253 of file field_mode.h.

◆ key2

s32 Camera::key2

Definition at line 253 of file field_mode.h.

◆ state

s32 Camera::state

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_updateCamera().

◆ substate

s32 Camera::substate

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_updateCamera().

◆ step

s32 Camera::step

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_updateCamera().

◆ counter

s32 Camera::counter

Definition at line 253 of file field_mode.h.

◆ paused

s32 Camera::paused

Definition at line 253 of file field_mode.h.

◆ childCount

s32 Camera::childCount

Definition at line 253 of file field_mode.h.

◆ children

void* Camera::children

Definition at line 253 of file field_mode.h.

◆ setState

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

Definition at line 253 of file field_mode.h.

◆ setSubstate

void(* Camera::setSubstate) (struct Camera *task, s32 substate)

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera(), and FIELDSTG_pointCamera().

◆ setStep

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

Definition at line 253 of file field_mode.h.

◆ setCounter

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

Definition at line 253 of file field_mode.h.

◆ nextState

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

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_updateCamera().

◆ nextSubstate

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

Definition at line 253 of file field_mode.h.

◆ nextStep

void(* Camera::nextStep) (struct Camera *task)

Definition at line 253 of file field_mode.h.

Referenced by FIELDSTG_updateCamera().

◆ tickCounter

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

Definition at line 253 of file field_mode.h.

◆ update

void(* Camera::update) ()

Definition at line 253 of file field_mode.h.

◆ destroy

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

Definition at line 253 of file field_mode.h.

◆ target

Actor* Camera::target

the actor it follows (substate 0)

Definition at line 254 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera(), and FIELDSTG_updateCamera().

◆ center

Vec2 Camera::center

◆ shaking

s32 Camera::shaking

Definition at line 256 of file field_mode.h.

Referenced by FIELDSTG_scrollCamera(), and FIELDSTG_shakeCamera().

◆ shake

s32 Camera::shake

the step of the shake, 0-3

Definition at line 257 of file field_mode.h.

Referenced by FIELDSTG_scrollCamera().

◆ voice

s16 Camera::voice

of the shaking sound, or -1

Definition at line 258 of file field_mode.h.

Referenced by FIELDSTG_createCamera(), FIELDSTG_scrollCamera(), and FIELDSTG_updateCamera().

◆ pan

Vec2 Camera::pan

where it looks while it pans to center

Definition at line 259 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera(), FIELDSTG_pointCamera(), and FIELDSTG_updateCamera().

◆ hasBounds

s32 Camera::hasBounds

Definition at line 260 of file field_mode.h.

Referenced by FIELDSTG_scrollCamera().

◆ bounds

Vec2 Camera::bounds

the map's size

Definition at line 261 of file field_mode.h.

Referenced by FIELDSTG_scrollCamera().

◆ unk7C

s32 Camera::unk7C

cleared with each new target; nothing reads it

Definition at line 262 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera(), and FIELDSTG_pointCamera().

◆ snap

s32 Camera::snap

goes to center at once instead of panning

Definition at line 263 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera(), FIELDSTG_pointCamera(), and FIELDSTG_updateCamera().

◆ targetId

s32 Camera::targetId

the target's character (Actor.key1)

Definition at line 264 of file field_mode.h.

Referenced by FIELDSTG_followWithCamera().

◆ spotX

s32 Camera::spotX

the spot it looks at (substate 1)

Definition at line 265 of file field_mode.h.

Referenced by FIELDSTG_pointCamera(), and FIELDSTG_updateCamera().

◆ spotY

s32 Camera::spotY

Definition at line 266 of file field_mode.h.

Referenced by FIELDSTG_pointCamera(), and FIELDSTG_updateCamera().


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