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

Go to the source code of this file.

Classes

struct  monopoly::chat::Entry
 
struct  monopoly::chat::State
 

Namespaces

namespace  monopoly
 
namespace  monopoly::chat
 

Functions

void monopoly::chat::setPlayerNames (const rules::GameState &gameState)
 
void monopoly::chat::setOutputLayoutMetrics (std::size_t wrappedLines, int height, std::size_t visibleLines) noexcept
 
void monopoly::chat::setFluffSelectionText (std::int64_t cannedTextId, std::u16string_view text)
 
void monopoly::chat::reset () noexcept
 
void monopoly::chat::toggle () noexcept
 
void monopoly::chat::setRecipientMask (std::uint32_t mask) noexcept
 
std::uint32_t monopoly::chat::recipientMask () noexcept
 
std::uint32_t monopoly::chat::eligibleRecipients () noexcept
 
bool monopoly::chat::processInput (const uimsg::Message &message, rules::PlayerNumber sender, std::uint32_t eligibleRecipients, bool networkMode)
 
bool monopoly::chat::processRuleMessage (const actions::Message &message)
 
std::int64_t monopoly::chat::selectedFluffMessageId () noexcept
 
bool monopoly::chat::activateFluffLine (std::size_t line, rules::PlayerNumber sender, std::uint32_t eligibleRecipients, bool networkMode)
 
bool monopoly::chat::buildTextAction (rules::PlayerNumber from, rules::PlayerNumber to, std::u16string_view text, actions::Message &result)
 
bool monopoly::chat::sendText (rules::PlayerNumber from, rules::PlayerNumber to, std::u16string_view text)
 
const State & monopoly::chat::stateReadOnly () noexcept
 
const Entry * monopoly::chat::entryAt (std::size_t index) noexcept
 

Variables

constexpr std::size_t monopoly::chat::HistoryCapacity = 512
 
constexpr std::size_t monopoly::chat::MaxInputCharacters = 255
 
constexpr std::size_t monopoly::chat::InputHistoryCapacity = 100
 
constexpr std::array< int, 6 > monopoly::chat::FluffCategoryLineCounts
 
constexpr std::array< std::int64_t, 6 > monopoly::chat::FluffCategoryMessageStarts