HoverRace  2.0
PlayerBar.h
Go to the documentation of this file.
1 
2 // PlayerBar.h
3 //
4 // Copyright (c) 2014, 2016 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 
26 namespace HoverRace {
27  namespace Client {
28  class GameDirector;
29  }
30  namespace Display {
31  class Display;
32  }
33  namespace Player {
34  class Player;
35  }
36 }
37 
38 namespace HoverRace {
39 namespace Client {
40 
46 {
48 public:
50  Display::uiLayoutFlags_t layoutFlags = 0);
51  virtual ~PlayerBar();
52 
53 public:
54  void PresentPlayers();
55 
56 private:
57  void OnPlayerAdded(std::shared_ptr<Player::Player> player);
58 
59 private:
61  boost::signals2::scoped_connection playerAddedConn;
62 };
63 
64 } // namespace Client
65 } // namespace HoverRace
Interface for game client shells.
Definition: GameDirector.h:57
GameDirector & director
Definition: TestLabScene.cpp:160
boost::signals2::scoped_connection playerAddedConn
Definition: PlayerBar.h:61
MR_UInt32 uiLayoutFlags_t
Definition: UiLayoutFlags.h:53
Sidebar overlay that lists the connected players.
Definition: PlayerBar.h:45
Base class for display managers.
Definition: Display.h:73
GameDirector & director
Definition: PlayerBar.h:60
Display::Container SUPER
Definition: PlayerBar.h:47
An invisible container for other UI widgets.
Definition: Container.h:49
Definition: Announcement.h:24