Alchemy
Loading...
Searching...
No Matches

field_internal.h File Reference

What every part of the field object shares: its includes and the few names more than one part uses. More...

Go to the source code of this file.

Macros

#define TARGET_UNSET   ((s32)0x80000000)
 A movement target coordinate that is not set.

Enumerations

enum  AnimationCommand {
  ANIM_CMD_END = 239 , ANIM_CMD_SET_KIND = 240 , ANIM_CMD_HOLD = 241 , ANIM_CMD_WAIT = 245 ,
  ANIM_CMD_JUMP = 253 , ANIM_CMD_PLAY = 254 , ANIM_CMD_BLANK = 255
}
 Animation script commands. More...
enum  {
  RESOURCE_SLOT_COUNT = 8 , FIELD_OBJECT_COUNT = 64 , ANIMATION_OBJECT_COUNT = 64 , ANIMATION_LAYER_COUNT = 4 ,
  ANIMATION_NORMAL_STEP = 16
}
enum  { FIELD_VIEW_FOCUS_X = 120 * Q16_ONE , FIELD_VIEW_FOCUS_Y = 96 * Q16_ONE , FIELD_VIEW_WIDTH = 240 * Q16_ONE , FIELD_VIEW_HEIGHT = 160 * Q16_ONE }
 Layered-map viewport distances in 16.16 pixels. More...

Detailed Description

What every part of the field object shares: its includes and the few names more than one part uses.

field.c includes it before the parts, and each part includes it too, so that a part read on its own still resolves. It places no bytes.

Definition in file field_internal.h.

Macro Definition Documentation

◆ TARGET_UNSET

Enumeration Type Documentation

◆ AnimationCommand

Animation script commands.

A script is pairs of bytes, a command and its argument; a command below 239 shows that frame for arg frames at normal speed (the timer counts sixteenths, less AnimationEntry.step each frame).

Enumerator
ANIM_CMD_END 

blank the layer and stop its script

ANIM_CMD_SET_KIND 

use facing table arg

ANIM_CMD_HOLD 

stay on this command and frame for good

ANIM_CMD_WAIT 

keep the current frame arg frames longer

ANIM_CMD_JUMP 

continue at script position arg

ANIM_CMD_PLAY 

switch to animation arg

ANIM_CMD_BLANK 

show nothing for arg

Definition at line 83 of file field_internal.h.

◆ anonymous enum

anonymous enum
Enumerator
RESOURCE_SLOT_COUNT 
FIELD_OBJECT_COUNT 
ANIMATION_OBJECT_COUNT 
ANIMATION_LAYER_COUNT 
ANIMATION_NORMAL_STEP 

Definition at line 93 of file field_internal.h.

◆ anonymous enum

anonymous enum

Layered-map viewport distances in 16.16 pixels.

The followed point is below the vertical centre; scroll bounds and camera following share this origin.

Enumerator
FIELD_VIEW_FOCUS_X 
FIELD_VIEW_FOCUS_Y 
FIELD_VIEW_WIDTH 
FIELD_VIEW_HEIGHT 

Definition at line 103 of file field_internal.h.