2018-02-14 00:58:22 +01:00
|
|
|
#ifndef GUARD_FIELDCONTROLAVATAR_H
|
|
|
|
#define GUARD_FIELDCONTROLAVATAR_H
|
|
|
|
|
|
|
|
struct FieldInput
|
|
|
|
{
|
2018-10-17 04:47:08 +02:00
|
|
|
bool8 pressedAButton:1;
|
|
|
|
bool8 checkStandardWildEncounter:1;
|
|
|
|
bool8 pressedStartButton:1;
|
|
|
|
bool8 pressedSelectButton:1;
|
2018-12-28 22:11:15 +01:00
|
|
|
bool8 heldDirection:1;
|
|
|
|
bool8 heldDirection2:1;
|
2018-10-17 04:47:08 +02:00
|
|
|
bool8 tookStep:1;
|
|
|
|
bool8 pressedBButton:1;
|
|
|
|
bool8 input_field_1_0:1;
|
|
|
|
bool8 input_field_1_1:1;
|
|
|
|
bool8 input_field_1_2:1;
|
|
|
|
bool8 input_field_1_3:1;
|
|
|
|
bool8 input_field_1_4:1;
|
|
|
|
bool8 input_field_1_5:1;
|
|
|
|
bool8 input_field_1_6:1;
|
|
|
|
bool8 input_field_1_7:1;
|
2018-02-14 00:58:22 +01:00
|
|
|
u8 dpadDirection;
|
|
|
|
};
|
|
|
|
|
|
|
|
void FieldClearPlayerInput(struct FieldInput *pStruct);
|
|
|
|
void FieldGetPlayerInput(struct FieldInput *pStruct, u16 keys, u16 heldKeys);
|
2018-10-17 02:11:44 +02:00
|
|
|
int ProcessPlayerFieldInput(struct FieldInput *pStruct);
|
2018-02-14 00:58:22 +01:00
|
|
|
u8 *sub_80682A8(struct MapPosition *, u8, u8);
|
|
|
|
void overworld_poison_timer_set(void);
|
2018-10-17 04:47:08 +02:00
|
|
|
void RestartWildEncounterImmunitySteps(void);
|
2018-02-14 00:58:22 +01:00
|
|
|
u8 *sub_8068E24(struct MapPosition *);
|
2019-11-21 04:55:44 +01:00
|
|
|
const u8 *GetObjectEventScriptPointerPlayerFacing(void);
|
2018-02-14 00:58:22 +01:00
|
|
|
bool8 sub_8068870(u16 a);
|
|
|
|
bool8 sub_8068894(void);
|
|
|
|
bool8 sub_8068A64(struct MapPosition *, u16);
|
|
|
|
u8 sub_8068F18(void);
|
2020-06-20 01:58:56 +02:00
|
|
|
bool8 TryDoDiveWarp(struct MapPosition *position, u16 b);
|
2018-10-17 04:47:08 +02:00
|
|
|
int SetCableClubWarp(void);
|
|
|
|
u8 TrySetDiveWarp(void);
|
2019-02-08 18:48:51 +01:00
|
|
|
const u8 *GetInteractedLinkPlayerScript(struct MapPosition *position, u8 metatileBehavior, u8 direction);
|
|
|
|
u8 *GetCoordEventScriptAtMapPosition(struct MapPosition *position);
|
2019-03-02 04:32:50 +01:00
|
|
|
void ClearPoisonStepCounter(void);
|
2018-02-14 00:58:22 +01:00
|
|
|
|
|
|
|
#endif // GUARD_FIELDCONTROLAVATAR_H
|