HoverRace  2.0
BulletinBoard.h
Go to the documentation of this file.
1 
2 // BulletinBoard.h
3 //
4 // Copyright (c) 2014 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include "../../engine/Display/Container.h"
25 #include "../../engine/Util/OS.h"
26 
27 namespace HoverRace {
28  namespace Client {
29  class Announcement;
30  }
31  namespace Display {
32  class Display;
33  }
34 }
35 
36 namespace HoverRace {
37 namespace Client {
38 
44 {
46 public:
48  Display::uiLayoutFlags_t layoutFlags = 0);
49  virtual ~BulletinBoard();
50 
51 public:
52  void Announce(std::shared_ptr<Announcement> ann);
53 
54 protected:
55  void Layout() override;
56 
57 public:
58  void Advance(Util::OS::timestamp_t tick);
59 
60 public:
62  {
63  RequestLayout();
64  }
65 
66 private:
67  class Bulletin;
68  std::list<std::shared_ptr<Bulletin>> bulletins;
69 };
70 
71 } // namespace HoverScript
72 } // namespace Client
Container for active announcements.
Definition: BulletinBoard.h:43
std::list< std::shared_ptr< Bulletin > > bulletins
Definition: BulletinBoard.h:67
MR_UInt32 uiLayoutFlags_t
Definition: UiLayoutFlags.h:53
Base class for display managers.
Definition: Display.h:73
Displays a single announcement.
Definition: BulletinBoard.cpp:41
An invisible container for other UI widgets.
Definition: Container.h:49
Definition: Announcement.h:24
Display::Container SUPER
Definition: BulletinBoard.h:45
std::shared_ptr< Announcement > ann
Definition: ClientApp.cpp:110
void OnBulletinSizeUpdated()
Definition: BulletinBoard.h:61
MR_Int64 timestamp_t
Definition: OS.h:55