wavelength 1.0.0
Loading...
Searching...
No Matches
netlpadgamepanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/netlpadpanel.h"
6#include "met/songpicpanel.h"
8#include "script/dataarray.h"
9#include "ui/uipanel.h"
10
18public:
20 static constexpr int kNumPlayerRows = 4;
21
30 NetLPadGamePanel(DataArray *pData, const char *pszDir) : SongPicPanel(pData, pszDir) {
31 }
32
39 ~NetLPadGamePanel() override {
40 }
41
51 static UIPanel *New(DataArray *pData, const char *pszDir) {
52 return new NetLPadGamePanel(pData, pszDir);
53 }
54
63 void Enter(bool bForce, float fTime) override;
64
72 void Update(std::list<NetLaunchpadPlayer> *pPlayers) override;
73
84 static void ShowPlayers(const char *pszPanel, std::list<NetLaunchpadPlayer> *pPlayers);
85
94};
Reference-counted array of script data nodes.
Definition dataarray.h:20
static constexpr int kNumPlayerRows
The number of player rows.
Definition netlpadgamepanel.h:20
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netlpadgamepanel.h:51
void RefreshGame()
Show the band picture, the genre, the tempo, the mode, the remix, and the power-ups of the game.
NetLPadGamePanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Definition netlpadgamepanel.h:30
static void ShowPlayers(const char *pszPanel, std::list< NetLaunchpadPlayer > *pPlayers)
Show up to four players on the rows of a panel, and hide the remaining rows.
void Enter(bool bForce, float fTime) override
Enter and show the game.
~NetLPadGamePanel() override
Destroy the panel.
Definition netlpadgamepanel.h:39
void Update(std::list< NetLaunchpadPlayer > *pPlayers) override
Show the players of the launchpad on the panel's rows.
Mix-in for a panel of the launchpad screens that shows the players of the online session.
Definition netlpadpanel.h:13
SongPicPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description, with no picture.
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.