53 Announcement(
const std::string &postType,
const std::string &label,
54 std::shared_ptr<Player::Player> player) :
55 postType(postType), label(label), player(
std::move(player)) { }
61 virtual std::ostream &
StreamOut(std::ostream &os)
const 69 const std::string &
GetLabel()
const {
return label; }
70 std::shared_ptr<Player::Player>
GetPlayer()
const {
return player; }
79 virtual std::shared_ptr<Display::Box> CreateIcon(
99 std::shared_ptr<Player::Player>
player;
Announcement(const std::string &postType, const std::string &label, std::shared_ptr< Player::Player > player)
Constructor.
Definition: Announcement.h:53
virtual ~Announcement()
Definition: Announcement.h:56
const std::string postType
Definition: Announcement.h:97
Base class for low-level bounded widgets.
Definition: Box.h:51
std::shared_ptr< Player::Player > GetPlayer() const
Definition: Announcement.h:70
const std::string & GetPostType() const
Definition: Announcement.h:68
const std::string & GetLabel() const
Definition: Announcement.h:69
const std::string label
Definition: Announcement.h:98
Base class for display managers.
Definition: Display.h:73
std::ostream & operator<<(std::ostream &os, const Color &c)
Definition: Color.cpp:61
virtual std::ostream & StreamOut(std::ostream &os) const
Definition: Announcement.h:61
An invisible container for other UI widgets.
Definition: Container.h:49
A container that arranges components into a grid that is automatically sized to the contents...
Definition: FlexGrid.h:52
std::shared_ptr< Player::Player > player
Definition: Announcement.h:99
Definition: Announcement.h:24
virtual void OnClick()
Handle when the announcement is clicked.
Definition: Announcement.h:94
Base class for connected players.
Definition: Player.h:49
std::shared_ptr< Announcement > ann
Definition: ClientApp.cpp:110
Base class for announcements.
Definition: Announcement.h:43