2017-09-16 21:13:06 +02:00
|
|
|
#ifndef GUARD_FIELD_EFFECT_HELPERS_H
|
|
|
|
#define GUARD_FIELD_EFFECT_HELPERS_H
|
2017-09-08 01:28:46 +02:00
|
|
|
|
2021-04-05 16:32:33 +02:00
|
|
|
// States for bobbing up and down while surfing
|
|
|
|
enum {
|
|
|
|
// No bobbing
|
|
|
|
BOB_NONE,
|
|
|
|
// Both the surf blob/mon should bob up and down
|
|
|
|
BOB_PLAYER_AND_MON,
|
|
|
|
// Only the surf blob/mon should bob up and down
|
|
|
|
// For when the player has jumped/flown off
|
|
|
|
BOB_JUST_MON,
|
|
|
|
};
|
2017-09-08 01:28:46 +02:00
|
|
|
|
2018-10-15 00:43:40 +02:00
|
|
|
u8 CreateWarpArrowSprite(void);
|
2021-04-05 16:32:33 +02:00
|
|
|
u8 StartUnderwaterSurfBlobBobbing(u8 oldSpriteId);
|
|
|
|
void SetSurfBlob_BobState(u8 spriteId, u8 state);
|
|
|
|
void SetSurfBlob_DontSyncAnim(u8 spriteId, bool8 dontSync);
|
|
|
|
void SetSurfBlob_PlayerOffset(u8 spriteId, bool8 hasOffset, s16 offset);
|
2021-04-06 20:51:39 +02:00
|
|
|
bool8 UpdateRevealDisguise(struct ObjectEvent *);
|
|
|
|
void StartRevealDisguise(struct ObjectEvent *);
|
2018-10-15 00:43:40 +02:00
|
|
|
void StartAshFieldEffect(s16, s16, u16, s16);
|
2022-07-29 17:15:33 +02:00
|
|
|
void SetUpReflection(struct ObjectEvent *, struct Sprite *, u8);
|
|
|
|
u32 StartFieldEffectForObjectEvent(u8, struct ObjectEvent *);
|
2018-10-15 00:43:40 +02:00
|
|
|
u8 FindTallGrassFieldEffectSpriteId(u8 localId, u8 mapNum, u8 mapGroup, s16 x, s16 y);
|
2022-07-29 17:15:33 +02:00
|
|
|
void UpdateRayquazaSpotlightEffect(struct Sprite *);
|
|
|
|
void UpdateShadowFieldEffect(struct Sprite *);
|
|
|
|
void UpdateTallGrassFieldEffect(struct Sprite *);
|
|
|
|
void WaitFieldEffectSpriteAnim(struct Sprite *);
|
|
|
|
void UpdateAshFieldEffect(struct Sprite *);
|
|
|
|
void UpdateSurfBlobFieldEffect(struct Sprite *);
|
|
|
|
void UpdateJumpImpactEffect(struct Sprite *);
|
|
|
|
void UpdateFootprintsTireTracksFieldEffect(struct Sprite *);
|
|
|
|
void UpdateSplashFieldEffect(struct Sprite *);
|
|
|
|
void UpdateLongGrassFieldEffect(struct Sprite *);
|
|
|
|
void UpdateSandPileFieldEffect(struct Sprite *);
|
|
|
|
void UpdateDisguiseFieldEffect(struct Sprite *);
|
|
|
|
void UpdateShortGrassFieldEffect(struct Sprite *);
|
|
|
|
void UpdateHotSpringsWaterFieldEffect(struct Sprite *);
|
|
|
|
void UpdateBubblesFieldEffect(struct Sprite *);
|
|
|
|
void UpdateSparkleFieldEffect(struct Sprite *);
|
2018-10-19 07:05:54 +02:00
|
|
|
void SetSpriteInvisible(u8 spriteId);
|
|
|
|
void ShowWarpArrowSprite(u8 spriteId, u8 direction, s16 x, s16 y);
|
2023-11-11 20:08:20 +01:00
|
|
|
void SetUpShadow(struct ObjectEvent *objEvent, struct Sprite *sprite);
|
2017-09-08 01:28:46 +02:00
|
|
|
|
2017-09-16 21:13:06 +02:00
|
|
|
#endif //GUARD_FIELD_EFFECT_HELPERS_H
|