wavelength 1.0.0
Loading...
Searching...
No Matches
ovyremixpanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4#include <memory>
5
6#include "app/hideablepanel.h"
9#include "math/vector3.h"
11#include "script/dataarray.h"
12
20public:
22 static constexpr int kNumPositions = 4;
23
37 OvyRemixPanel(int nPlayer, int nPosition, RndTransformable *pParent);
38
45 ~OvyRemixPanel() override;
46
55 void Poll(float fDelta) override;
56
63 void Draw() override;
64
72 void ShowSubPanel(int nType);
73
83 OvyRemixGenPanel *FindSubPanel(int nType, int nUnused);
84
94 static void LoadPositions(DataArray *pConfig, DataArray *pDefaults, bool bUnused);
95
102
104 const std::list<std::unique_ptr<OvyRemixSubPanel>> &GetSubPanels() const {
105 return mSubPanels;
106 }
107
108private:
109 std::list<std::unique_ptr<OvyRemixSubPanel>> mSubPanels;
110 OvyRemixSubPanel *mShownSubPanel;
111 OvyRemixSubPanel *mNextSubPanel;
112};
Reference-counted array of script data nodes.
Definition dataarray.h:20
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
OvyRemixGenPanel()
Construct an empty panel.
void Draw() override
Draw the effect panels and the main panel while the display is not hidden.
void Poll(float fDelta) override
Advance the slides and the blinks, and slide out the effect panel ShowSubPanel() asked for once the p...
void ShowSubPanel(int nType)
Slide out the effect panel of a type, after the shown one slides back.
~OvyRemixPanel() override
Destroy the display and its effect panels.
static constexpr int kNumPositions
The number of places a remix panel can sit at.
Definition ovyremixpanel.h:22
OvyRemixPanel(int nPlayer, int nPosition, RndTransformable *pParent)
Construct a hidden remix display for a player.
static void LoadPositions(DataArray *pConfig, DataArray *pDefaults, bool bUnused)
Read the places of the remix panels from remix_panel_positions.
static Vector3 sPositions[kNumPositions]
The places a remix panel can sit at, read by LoadPositions().
Definition ovyremixpanel.h:101
const std::list< std::unique_ptr< OvyRemixSubPanel > > & GetSubPanels() const
Definition ovyremixpanel.h:104
OvyRemixGenPanel * FindSubPanel(int nType, int nUnused)
Find the panel of a type.
Effect panel of the remix head-up display, which slides out of the main panel.
Definition ovyremixsubpanel.h:11
Mix-in for an object with a local transform and a world transform derived from its parent's.
Definition rndtransformable.h:17
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14