21#ifndef HEADER_BATTLE_AI_HPP
22#define HEADER_BATTLE_AI_HPP
24#include "karts/controller/arena_ai.hpp"
41 bool find_sta) OVERRIDE;
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
A base class for AI that use navmesh to work.
Definition: arena_ai.hpp:42
The actual battle AI.
Definition: battle_ai.hpp:33
virtual void findClosestKart(bool consider_difficulty, bool find_sta) OVERRIDE
Find the closest kart around this AI, if consider_difficulty is true, AI will try to follow human pla...
Definition: battle_ai.cpp:75
virtual bool isWaiting() const OVERRIDE
If true, AI will stop moving.
Definition: battle_ai.cpp:184
WorldWithRank * m_world
Keep a pointer to world.
Definition: battle_ai.hpp:36
virtual float getKartDistance(const AbstractKart *kart) const OVERRIDE
Return the distance based on graph distance matrix to any kart.
Definition: battle_ai.cpp:190
virtual void findTarget() OVERRIDE
Find a suitable target to follow, it will find the closest kart first, it's used as fallback if no it...
Definition: battle_ai.cpp:139
virtual int getCurrentNode() const OVERRIDE
Return the current ArenaNode the AI located on.
Definition: battle_ai.cpp:178
virtual bool isKartOnRoad() const OVERRIDE
If true, AI stays on the ArenaNode correctly, otherwise RescueAnimation will be done after sometime.
Definition: battle_ai.cpp:197
An implementation of WorldWithRank, to provide the 3 strikes battle game mode.
Definition: three_strikes_battle.hpp:37
A WorldWithRank is a world where the karts are ranked.
Definition: world_with_rank.hpp:39