mirror of
https://github.com/pret/pmd-red.git
synced 2024-11-27 15:00:33 +00:00
26 lines
942 B
C
26 lines
942 B
C
#ifndef GUARD_DUNGEON_AI_ATTACK_H
|
|
#define GUARD_DUNGEON_AI_ATTACK_H
|
|
|
|
#include "structs/dungeon_entity.h"
|
|
|
|
#define RANGED_ATTACK_RANGE 10
|
|
|
|
// size: 0x8
|
|
struct AIPossibleMove
|
|
{
|
|
bool8 canBeUsed;
|
|
u8 direction;
|
|
s32 weight;
|
|
};
|
|
|
|
void DecideAttack(Entity *pokemon);
|
|
s32 AIConsiderMove(struct AIPossibleMove *aiPossibleMove, Entity *pokemon, Move *move);
|
|
bool8 IsTargetInLineRange(Entity *user, Entity *target, s32 range);
|
|
s32 TryAddTargetToAITargetList(s32 numPotentialTargets, s32 targetingFlags, Entity *user, Entity *target, Move *move, u32 hasStatusChecker);
|
|
bool8 IsAITargetEligible(s32 targetingFlags, Entity *user, Entity *target, Move *move, bool32 hasStatusChecker);
|
|
s32 WeightMove(Entity *user, s32 targetingFlags, Entity *target, u32 moveType);
|
|
bool8 TargetRegularAttack(Entity *pokemon, u32 *targetDir, bool8 checkPetrified);
|
|
bool8 IsTargetInRange(Entity *pokemon, Entity *targetPokemon, s32 direction, s32 maxRange);
|
|
|
|
#endif
|