Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
Messaging.hpp File Reference
#include "Actions.hpp"
#include "MessageTransport.hpp"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <functional>
#include <string_view>
Include dependency graph for Messaging.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::messaging
 

Functions

bool monopoly::messaging::initialize ()
 
void monopoly::messaging::shutdown ()
 
bool monopoly::messaging::startNetwork (std::unique_ptr< Transport > transport)
 
void monopoly::messaging::pumpNetwork ()
 
void monopoly::messaging::stopNetwork ()
 
void monopoly::messaging::setNetworkStarter (std::function< bool()> starter)
 
bool monopoly::messaging::startConfiguredNetwork ()
 
bool monopoly::messaging::gameplayNetwork ()
 
bool monopoly::messaging::gameplayReady ()
 
void monopoly::messaging::noteClientResynchronized ()
 
bool monopoly::messaging::consumeHostDisconnected ()
 
void monopoly::messaging::resetPlayerOwners ()
 
void monopoly::messaging::setPlayerOwner (rules::PlayerNumber player, std::uint32_t source)
 
std::uint32_t monopoly::messaging::playerOwner (rules::PlayerNumber player)
 
bool monopoly::messaging::authenticSender (const rules::GameState &state, const actions::Message &message)
 
std::string_view monopoly::messaging::networkError ()
 
bool monopoly::messaging::sendAction (const actions::Message &message)
 
bool monopoly::messaging::sendAction (actions::Type action, rules::PlayerNumber fromPlayer, rules::PlayerNumber toPlayer, std::int64_t numberA, std::int64_t numberB, std::int64_t numberC, std::int64_t numberD, std::wstring_view stringA)
 
void monopoly::messaging::clearActionQueue ()
 
std::size_t monopoly::messaging::currentQueueSize ()
 
bool monopoly::messaging::receiveAction (actions::Message &message)
 
bool monopoly::messaging::receiveVoiceChatOnly (actions::Message &message)
 
bool monopoly::messaging::serverMode ()
 
bool monopoly::messaging::networkMode ()
 
std::size_t monopoly::messaging::queuedActionCount ()
 

Variables

constexpr std::size_t monopoly::messaging::MessageQueueCapacity