Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_shouts_bar.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <cstddef>
12#include <string>
13
15
22namespace MatchShoutsBar
23{
25bool available(const MatchEngine& engine);
26
28float height(float width);
29
31void render(const TouchlineContext& context, float width);
32
38
40std::string keyName(std::size_t index);
41
46bool shout(const TouchlineContext& context, std::size_t index);
47} // namespace MatchShoutsBar
Definition match_engine.h:517
SDL_Scancode scancode
Definition input_actions.cpp:28
Touchline shouts of the live match: one compact button per shout (Shift+1 .. Shift+0,...
Definition match_shouts_bar.cpp:25
std::string keyName(std::size_t index)
Key (chord) that gives the shout at index, e.g. "Shift+1".
Definition match_shouts_bar.cpp:71
bool shout(const TouchlineContext &context, std::size_t index)
Gives the shout at index of MatchChanges::SHOUTS and notes it in the HUD status; false when shouts ar...
Definition match_shouts_bar.cpp:97
float height(float width)
Height of the bar at width (it wraps onto more rows).
Definition match_shouts_bar.cpp:87
int indexForScancode(int scancode)
Shout slot of a Shift+key press by physical key (the number row, then the key right of 0),...
Definition match_shouts_bar.cpp:62
bool available(const MatchEngine &engine)
Shouts can be given now (the match is being played).
Definition match_shouts_bar.cpp:80
void render(const TouchlineContext &context, float width)
Draws the bar in the current window, width wide.
Definition match_shouts_bar.cpp:108
int index
Definition runtime_editor.cpp:94
What the matchday dialogs act on: the live engine and the managed side, plus the match HUD's status l...
Definition match_touchline.h:27