17#ifndef HEADER_NETWORK_PLAYER_CONTROLLER_HPP
18#define HEADER_NETWORK_PLAYER_CONTROLLER_HPP
20#include "karts/controller/player_controller.hpp"
31 Log::info(
"NetworkPlayerController",
32 "New network player controller.");
54 virtual void update(
int ticks) OVERRIDE
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
KartControl * m_controls
A pointer to the main controller, from which the kart takes it commands.
Definition: controller.hpp:55
void setSteer(float f)
Sets the current steering value.
Definition: kart_control.cpp:27
float getSteer() const
Returns the current steering value in [-1, 1].
Definition: kart_control.hpp:128
static NetworkConfig * get()
Singleton get, which creates this object if necessary.
Definition: network_config.hpp:139
Definition: network_player_controller.hpp:27
virtual bool canGetAchievements() const OVERRIDE
Only local players can get achievements.
Definition: network_player_controller.hpp:39
virtual void update(int ticks) OVERRIDE
Update for network controller.
Definition: network_player_controller.hpp:54
virtual bool isLocalPlayerController() const OVERRIDE
This player is not a local player.
Definition: network_player_controller.hpp:43
Definition: player_controller.hpp:28
virtual void update(int ticks) OVERRIDE
Updates the player kart, called once each timestep.
Definition: player_controller.cpp:327
float m_network_steering_reduction
In case of a network race, remote karts will get their steering somewhat reduced each frame.
Definition: stk_config.hpp:104
Defines network configuration for server and client.