Etterna 0.74.4
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
Style Class Reference
Collaboration diagram for Style:
Collaboration graph
[legend]

Classes

struct  ColumnInfo
 Some general column infromation. More...
 

Public Types

enum  { NO_MAPPING = -1 , END_MAPPING = -2 }
 

Public Member Functions

void StyleInputToGameInput (int iCol, std::vector< GameInput > &ret) const
 
auto GameInputToColumn (const GameInput &GameI) const -> int
 Retrieve the column based on the game input.
 
auto ColToButtonName (int iCol) const -> std::string
 
auto GetUsesCenteredArrows () const -> bool
 
void GetTransformedNoteDataForStyle (PlayerNumber pn, const NoteData &original, NoteData &noteDataOut) const
 
void GetMinAndMaxColX (PlayerNumber pn, float &fMixXOut, float &fMaxXOut) const
 
auto GetWidth (PlayerNumber pn) const -> float
 
void PushSelf (lua_State *L)
 

Public Attributes

bool m_bUsedForGameplay
 Can this style be used for gameplay purposes?
 
bool m_bUsedForEdit
 Can this style be used for making edits?
 
bool m_bUsedForDemonstration
 Can this style be used in a demonstration?
 
bool m_bUsedForHowToPlay
 Can this style be used to explain how to play the game?
 
const char * m_szName
 The name of the style.
 
StepsType m_StepsType
 Steps format used for each player.
 
StyleType m_StyleType
 Style format used for each player.
 
int m_iColsPerPlayer
 The number of total tracks/columns this style expects.
 
ColumnInfo m_ColumnInfo [MAX_COLS_PER_PLAYER]
 Map each players' colun to a track in the NoteData.
 
int m_iInputColumn [NUM_GameController][NUM_GameButton]
 Map each input to a column, or GameButton_Invalid.
 
int m_iColumnDrawOrder [MAX_COLS_PER_PLAYER]
 

Member Function Documentation

◆ GameInputToColumn()

int Style::GameInputToColumn ( const GameInput GameI) const -> int

Retrieve the column based on the game input.

Parameters
GameIthe game input.
Returns
the Column number of the style, or Column_Invalid if it's an invalid column. Examples of this include getting the upper left hand corner in a traditional four panel mode.

Member Data Documentation

◆ m_iColsPerPlayer

int Style::m_iColsPerPlayer

The number of total tracks/columns this style expects.

As an example, 4 is expected for ITG style versus, but 8 for ITG style double.

◆ m_StepsType

StepsType Style::m_StepsType

Steps format used for each player.

For example, "dance versus" reads the Steps with the tag "dance-single".

◆ m_szName

const char* Style::m_szName

The name of the style.

Used by GameManager::GameAndStringToStyle to determine whether this is the style that matches the string.


The documentation for this class was generated from the following files: