21#ifndef HEADER_LOCAL_PLAYER_CONTROLLER_HPP
22#define HEADER_LOCAL_PLAYER_CONTROLLER_HPP
24#include "karts/controller/player_controller.hpp"
45 bool m_sound_schedule;
47 bool m_is_above_nitro_target;
49 std::unique_ptr<ParticleEmitter> m_sky_particles_emitter;
67 virtual void steer(
int,
int) OVERRIDE;
71 void doCrashHaptics();
72 void setParticleEmitterPosition(const btTransform& t);
76 const
int local_player_id,
79 void update (
int ticks) OVERRIDE;
81 bool dry_run=false) OVERRIDE;
82 void initParticleEmitter();
85 float previous_energy=0) OVERRIDE;
87 virtual
void reset () OVERRIDE;
93 virtual
void crashed(const
Material *m) OVERRIDE;
95 virtual
void rumble(
float strength_low,
float strength_high, uint16_t duration) OVERRIDE;
103 core::stringw
getName(
bool include_handicap_string =
true) const OVERRIDE;
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Contains the state information of an item, i.e.
Definition: item.hpp:53
PlayerKart manages control events from the player and moves them to the Kart.
Definition: local_player_controller.hpp:39
virtual void finishedRace(float time) OVERRIDE
Called when a kart finishes race.
Definition: local_player_controller.cpp:369
virtual bool isLocalPlayerController() const OVERRIDE
This function checks if this is a local player.
Definition: local_player_controller.hpp:100
StateManager::ActivePlayer * m_player
Stores the active player data structure.
Definition: local_player_controller.hpp:43
void collectedItem(const ItemState &item, float previous_energy=0) OVERRIDE
Called when a kart hits an item.
Definition: local_player_controller.cpp:406
bool action(PlayerAction action, int value, bool dry_run=false) OVERRIDE
This function interprets a kart action and value, and set the corresponding entries in the kart contr...
Definition: local_player_controller.cpp:171
virtual void steer(int, int) OVERRIDE
Handles steering for a player kart.
Definition: local_player_controller.cpp:225
virtual void handleZipper(bool play_sound) OVERRIDE
Called when a kart hits or uses a zipper.
Definition: local_player_controller.cpp:379
virtual void displayPenaltyWarning() OVERRIDE
Displays a penalty warning for player controlled karts.
Definition: local_player_controller.cpp:323
void update(int ticks) OVERRIDE
Updates the player kart, called once each timestep.
Definition: local_player_controller.cpp:247
virtual bool canGetAchievements() const OVERRIDE
Returns true if the player of this controller can collect achievements.
Definition: local_player_controller.cpp:454
int m_camera_index
The index of the camera attached to the kart for this controller.
Definition: local_player_controller.hpp:53
void nitroNotFullSound()
If the nitro level has gone under the nitro goal, play a bad effect sound.
Definition: local_player_controller.cpp:441
virtual void resetInputState() OVERRIDE
Resets the state of control keys.
Definition: local_player_controller.cpp:148
virtual bool isPlayerController() const OVERRIDE
This function checks if this player is not an AI, i.e.
Definition: local_player_controller.hpp:98
virtual void reset() OVERRIDE
Resets the player kart for a new or restarted race.
Definition: local_player_controller.cpp:135
core::stringw getName(bool include_handicap_string=true) const OVERRIDE
Returns the name of the player profile.
Definition: local_player_controller.cpp:461
virtual void setPosition(int p) OVERRIDE
Called just before the kart position is changed.
Definition: local_player_controller.cpp:343
Definition: material.hpp:48
manages smoke particle effects
Definition: particle_emitter.hpp:42
Definition: player_controller.hpp:28
The base class for sound effects.
Definition: sfx_base.hpp:43
The buffer (data) for one kind of sound effects.
Definition: sfx_buffer.hpp:44
Represents a player that is currently playing.
Definition: state_manager.hpp:76
HandicapLevel
Handicap per player.
Definition: remote_kart_info.hpp:42