19#ifndef NETWORK_WORLD_HPP
20#define NETWORK_WORLD_HPP
40 std::weak_ptr<GameEventsProtocol> m_game_events_protocol;
51 static void destroy();
55 void update(
int ticks,
bool fast_forward);
57 void start(std::shared_ptr<GameEventsProtocol> gep)
59 m_game_events_protocol = gep;
63 void stop() { m_running =
false; }
68 std::shared_ptr<GameEventsProtocol> getProtocol()
const
69 {
return m_game_events_protocol.lock(); }
71 bool protocolStopped()
const {
return m_game_events_protocol.expired(); }
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
This is the base class for kart controller - that can be a player or a a robot.
Definition: controller.hpp:46
Definition: game_events_protocol.hpp:10
This is the interface between the main game and the online implementation.
Definition: race_event_manager.hpp:36
bool isRunning()
Returns if this instance is in running state or not.
Definition: race_event_manager.hpp:66
void update(int ticks, bool fast_forward)
In network games this update function is called instead of World::updateWorld().
Definition: race_event_manager.cpp:60