19#ifndef HEADER_NETWORK_AI_CONTROLLER_HPP
20#define HEADER_NETWORK_AI_CONTROLLER_HPP
22#include "karts/controller/player_controller.hpp"
30 static int m_ai_frequency;
31 int m_prev_update_ticks;
34 void convertAIToPlayerActions();
39 virtual void update(
int ticks) OVERRIDE;
40 virtual void reset() OVERRIDE;
44 static void setAIFrequency(
int freq) { m_ai_frequency = freq; }
A base class for all AI karts.
Definition: ai_base_controller.hpp:34
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Definition: kart_control.hpp:30
Definition: network_ai_controller.hpp:28
virtual bool isLocalPlayerController() const OVERRIDE
This function checks if this is a local player.
Definition: network_ai_controller.cpp:55
virtual void update(int ticks) OVERRIDE
Updates the player kart, called once each timestep.
Definition: network_ai_controller.cpp:61
virtual void reset() OVERRIDE
Resets the player kart for a new or restarted race.
Definition: network_ai_controller.cpp:78
Definition: player_controller.hpp:28