HoverRace
2.0
|
Basic message. More...
#include <MessageAnnouncement.h>
Public Member Functions | |
MessageAnnouncement (const std::string &label, std::shared_ptr< Player::Player > player={}) | |
MessageAnnouncement (const std::string &label, const std::string &text, std::shared_ptr< Player::Player > player={}) | |
virtual | ~MessageAnnouncement () |
void | CreateContents (Display::Display &display, Display::FlexGrid &grid) const override |
Fill in the UI contents of the announcement. More... | |
std::shared_ptr< Display::Box > | CreateIcon (Display::Display &display, Display::Container &parent) const override |
Create the optional icon to display next to the announcement. More... | |
Public Member Functions inherited from HoverRace::Client::Announcement | |
Announcement (const std::string &postType, const std::string &label, std::shared_ptr< Player::Player > player) | |
Constructor. More... | |
virtual | ~Announcement () |
const std::string & | GetLabel () const |
std::shared_ptr< Player::Player > | GetPlayer () const |
const std::string & | GetPostType () const |
virtual void | OnClick () |
Handle when the announcement is clicked. More... | |
Announcement & | operator= (const Announcement &)=delete |
virtual std::ostream & | StreamOut (std::ostream &os) const |
Protected Member Functions | |
MessageAnnouncement (const std::string &postType, const std::string &label, const std::string &text, std::shared_ptr< Player::Player > player={}) | |
Private Types | |
using | SUPER = Announcement |
Private Attributes | |
const std::string | text |
Basic message.
|
private |
|
inline |
|
inline |
|
protected |
|
inlinevirtual |
|
overridevirtual |
Fill in the UI contents of the announcement.
display | The display the announcement will appear on. |
grid | The grid (initially empty) to which components should be added. |
Implements HoverRace::Client::Announcement.
|
overridevirtual |
Create the optional icon to display next to the announcement.
display | The display the announcement will appear on. |
parent | The container the icon will be added to. |
nullptr
). Implements HoverRace::Client::Announcement.
Reimplemented in HoverRace::Client::PlayerStatusAnnouncement.
|
private |