Header cleanup
This commit is contained in:
parent
9c46b70042
commit
d538dfc7e6
@ -27,6 +27,7 @@
|
|||||||
#include "utils/time.hpp"
|
#include "utils/time.hpp"
|
||||||
#include "utils/vs.hpp"
|
#include "utils/vs.hpp"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -229,8 +230,9 @@ void ProtocolManager::startProtocol(std::shared_ptr<Protocol> protocol)
|
|||||||
protocol->setup();
|
protocol->setup();
|
||||||
protocol->setState(PROTOCOL_STATE_RUNNING);
|
protocol->setState(PROTOCOL_STATE_RUNNING);
|
||||||
opt.unlock();
|
opt.unlock();
|
||||||
|
Protocol* protocol_ptr = protocol.get();
|
||||||
Log::info("ProtocolManager",
|
Log::info("ProtocolManager",
|
||||||
"A %s protocol has been started.", typeid(*protocol).name());
|
"A %s protocol has been started.", typeid(*protocol_ptr).name());
|
||||||
|
|
||||||
// setup the protocol and notify it that it's started
|
// setup the protocol and notify it that it's started
|
||||||
} // startProtocol
|
} // startProtocol
|
||||||
@ -278,9 +280,10 @@ void ProtocolManager::OneProtocolType::removeProtocol(std::shared_ptr<Protocol>
|
|||||||
m_protocols.getData().end(), p);
|
m_protocols.getData().end(), p);
|
||||||
if (i == m_protocols.getData().end())
|
if (i == m_protocols.getData().end())
|
||||||
{
|
{
|
||||||
|
Protocol* protocol_ptr = p.get();
|
||||||
Log::error("ProtocolManager",
|
Log::error("ProtocolManager",
|
||||||
"Trying to delete protocol '%s', which was not found",
|
"Trying to delete protocol '%s', which was not found",
|
||||||
typeid(*p).name());
|
typeid(*protocol_ptr).name());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -305,8 +308,9 @@ void ProtocolManager::terminateProtocol(std::shared_ptr<Protocol> protocol)
|
|||||||
opt.unlock();
|
opt.unlock();
|
||||||
protocol->setState(PROTOCOL_STATE_TERMINATED);
|
protocol->setState(PROTOCOL_STATE_TERMINATED);
|
||||||
protocol->terminated();
|
protocol->terminated();
|
||||||
|
Protocol* protocol_ptr = protocol.get();
|
||||||
Log::info("ProtocolManager",
|
Log::info("ProtocolManager",
|
||||||
"A %s protocol has been terminated.", typeid(*protocol).name());
|
"A %s protocol has been terminated.", typeid(*protocol_ptr).name());
|
||||||
} // terminateProtocol
|
} // terminateProtocol
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "karts/controller/player_controller.hpp"
|
#include "karts/controller/player_controller.hpp"
|
||||||
#include "network/event.hpp"
|
#include "network/event.hpp"
|
||||||
#include "network/network_config.hpp"
|
#include "network/network_config.hpp"
|
||||||
#include "network/network_player_profile.hpp"
|
|
||||||
#include "network/game_setup.hpp"
|
#include "network/game_setup.hpp"
|
||||||
#include "network/network_config.hpp"
|
#include "network/network_config.hpp"
|
||||||
#include "network/network_string.hpp"
|
#include "network/network_string.hpp"
|
||||||
|
@ -23,9 +23,7 @@
|
|||||||
#define STK_HOST_HPP
|
#define STK_HOST_HPP
|
||||||
|
|
||||||
#include "network/network.hpp"
|
#include "network/network.hpp"
|
||||||
#include "network/network_config.hpp"
|
|
||||||
#include "network/network_string.hpp"
|
#include "network/network_string.hpp"
|
||||||
#include "network/stk_peer.hpp"
|
|
||||||
#include "network/transport_address.hpp"
|
#include "network/transport_address.hpp"
|
||||||
#include "utils/synchronised.hpp"
|
#include "utils/synchronised.hpp"
|
||||||
|
|
||||||
@ -44,6 +42,7 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
class GameSetup;
|
class GameSetup;
|
||||||
|
class NetworkPlayerProfile;
|
||||||
class Server;
|
class Server;
|
||||||
class SeparateProcess;
|
class SeparateProcess;
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "items/item_manager.hpp"
|
#include "items/item_manager.hpp"
|
||||||
#include "karts/kart_properties.hpp"
|
#include "karts/kart_properties.hpp"
|
||||||
#include "karts/kart_properties_manager.hpp"
|
#include "karts/kart_properties_manager.hpp"
|
||||||
|
#include "network/network_config.hpp"
|
||||||
#include "network/network_player_profile.hpp"
|
#include "network/network_player_profile.hpp"
|
||||||
#include "network/protocol_manager.hpp"
|
#include "network/protocol_manager.hpp"
|
||||||
#include "network/protocols/client_lobby.hpp"
|
#include "network/protocols/client_lobby.hpp"
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "input/device_manager.hpp"
|
#include "input/device_manager.hpp"
|
||||||
#include "input/input_manager.hpp"
|
#include "input/input_manager.hpp"
|
||||||
#include "io/file_manager.hpp"
|
#include "io/file_manager.hpp"
|
||||||
|
#include "network/network_config.hpp"
|
||||||
#include "network/network_player_profile.hpp"
|
#include "network/network_player_profile.hpp"
|
||||||
#include "network/protocols/client_lobby.hpp"
|
#include "network/protocols/client_lobby.hpp"
|
||||||
#include "network/protocols/server_lobby.hpp"
|
#include "network/protocols/server_lobby.hpp"
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include "modes/overworld.hpp"
|
#include "modes/overworld.hpp"
|
||||||
#include "modes/soccer_world.hpp"
|
#include "modes/soccer_world.hpp"
|
||||||
#include "modes/world_with_rank.hpp"
|
#include "modes/world_with_rank.hpp"
|
||||||
|
#include "network/network_config.hpp"
|
||||||
#include "network/stk_host.hpp"
|
#include "network/stk_host.hpp"
|
||||||
#include "network/protocols/client_lobby.hpp"
|
#include "network/protocols/client_lobby.hpp"
|
||||||
#include "race/highscores.hpp"
|
#include "race/highscores.hpp"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "io/file_manager.hpp"
|
#include "io/file_manager.hpp"
|
||||||
#include "network/network_player_profile.hpp"
|
#include "network/network_player_profile.hpp"
|
||||||
#include "network/protocols/client_lobby.hpp"
|
#include "network/protocols/client_lobby.hpp"
|
||||||
|
#include "network/network_config.hpp"
|
||||||
#include "network/stk_host.hpp"
|
#include "network/stk_host.hpp"
|
||||||
#include "states_screens/state_manager.hpp"
|
#include "states_screens/state_manager.hpp"
|
||||||
#include "states_screens/track_info_screen.hpp"
|
#include "states_screens/track_info_screen.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user