Files
itgmania212121/stepmania/src/PlayerOptions.h
T

136 lines
3.4 KiB
C
Raw Normal View History

#ifndef PLAYEROPTIONS_H
#define PLAYEROPTIONS_H
2002-07-27 19:29:51 +00:00
/*
-----------------------------------------------------------------------------
Class: PlayerOptions
Desc: Per-player options that are not saved between sessions.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
struct PlayerOptions
{
PlayerOptions() { Init(); };
void Init();
void Approach( const PlayerOptions& other, float fDeltaSeconds );
2003-09-29 05:01:41 +00:00
CString GetString() const;
void FromString( CString sOptions );
void ChooseRandomMofifiers();
2004-01-18 07:44:39 +00:00
bool operator==( const PlayerOptions &other ) const;
bool operator!=( const PlayerOptions &other ) const { return !operator==(other); }
2004-01-11 04:33:21 +00:00
enum Accel {
2003-01-25 11:05:12 +00:00
ACCEL_BOOST,
2003-04-01 19:31:27 +00:00
ACCEL_BRAKE,
2003-01-25 11:05:12 +00:00
ACCEL_WAVE,
ACCEL_EXPAND,
ACCEL_BOOMERANG,
NUM_ACCELS
};
enum Effect {
2002-09-30 02:19:02 +00:00
EFFECT_DRUNK,
EFFECT_DIZZY,
EFFECT_MINI,
EFFECT_FLIP,
EFFECT_TORNADO,
EFFECT_TIPSY,
2003-07-09 01:34:48 +00:00
EFFECT_BUMPY,
2003-07-09 10:40:34 +00:00
EFFECT_BEAT,
NUM_EFFECTS
};
enum Appearance {
2003-01-25 11:05:12 +00:00
APPEARANCE_HIDDEN,
APPEARANCE_SUDDEN,
APPEARANCE_STEALTH,
APPEARANCE_BLINK,
APPEARANCE_RANDOMVANISH,
NUM_APPEARANCES
};
enum Turn {
2003-01-25 11:05:12 +00:00
TURN_NONE=0,
TURN_MIRROR,
TURN_LEFT,
TURN_RIGHT,
TURN_SHUFFLE,
TURN_SUPER_SHUFFLE,
NUM_TURNS
};
enum Transform {
2003-11-07 08:45:21 +00:00
TRANSFORM_NOHOLDS,
TRANSFORM_NOMINES,
TRANSFORM_LITTLE,
2003-02-19 22:58:14 +00:00
TRANSFORM_WIDE,
2003-02-20 00:57:52 +00:00
TRANSFORM_BIG,
TRANSFORM_QUICK,
2003-03-13 09:25:57 +00:00
TRANSFORM_SKIPPY,
2003-08-10 10:12:50 +00:00
TRANSFORM_MINES,
2003-11-07 05:17:41 +00:00
TRANSFORM_ECHO,
TRANSFORM_PLANTED,
TRANSFORM_STOMP,
2003-11-07 08:45:21 +00:00
TRANSFORM_TWISTER,
2004-01-11 06:34:30 +00:00
TRANSFORM_NOJUMPS,
2004-01-02 11:25:21 +00:00
TRANSFORM_NOHANDS,
2004-01-12 03:47:55 +00:00
TRANSFORM_NOQUADS,
NUM_TRANSFORMS
};
2003-08-17 00:15:54 +00:00
enum Scroll {
SCROLL_REVERSE=0,
SCROLL_SPLIT,
SCROLL_ALTERNATE,
NUM_SCROLLS
};
float GetReversePercentForColumn( int iCol ); // accounts for all Directions
2003-04-24 06:16:04 +00:00
bool m_bTimeSpacing; // instead of Beat spacing
2003-10-26 08:37:48 +00:00
/* All floats have a corresponding speed setting, which determines how fast
* PlayerOptions::Approach approaches. */
float m_fScrollSpeed, m_SpeedfScrollSpeed; // used if !m_bTimeSpacing
float m_fScrollBPM, m_SpeedfScrollBPM; // used if m_bTimeSpacing
float m_fAccels[NUM_ACCELS], m_SpeedfAccels[NUM_ACCELS];
float m_fEffects[NUM_EFFECTS],m_SpeedfEffects[NUM_EFFECTS];
float m_fAppearances[NUM_APPEARANCES],m_SpeedfAppearances[NUM_APPEARANCES];
float m_fScrolls[NUM_SCROLLS],m_SpeedfScrolls[NUM_SCROLLS];
float m_fDark, m_SpeedfDark;
float m_fBlind, m_SpeedfBlind;
float m_fPerspectiveTilt, m_SpeedfPerspectiveTilt; // -1 = near, 0 = overhead, +1 = space
float m_fSkew, m_SpeedfSkew; // 0 = vanish point is in center of player, 1 = vanish point is in center of screen
/* If this is > 0, then the player must have life above this value at the end of
* the song to pass. This is independent of SongOptions::m_FailType. */
float m_fPassmark, m_SpeedfPassmark;
Turn m_Turn;
2003-11-07 08:45:21 +00:00
bool m_bTransforms[NUM_TRANSFORMS];
2003-03-27 00:49:48 +00:00
bool m_bTimingAssist;
2003-08-01 00:15:17 +00:00
bool m_bProTiming;
2003-04-22 04:54:04 +00:00
CString m_sPositioning; /* The current positioning mode, or empty to use the normal positions. */
CString m_sNoteSkin;
2003-04-10 08:49:25 +00:00
void NextAccel();
void NextEffect();
void NextAppearance();
void NextTurn();
void NextTransform();
2003-04-01 19:31:27 +00:00
void NextPerspective();
2003-08-17 00:15:54 +00:00
void NextScroll();
Accel GetFirstAccel();
Effect GetFirstEffect();
Appearance GetFirstAppearance();
2003-08-17 00:15:54 +00:00
Scroll GetFirstScroll();
void SetOneAccel( Accel a );
void SetOneEffect( Effect e );
void SetOneAppearance( Appearance a );
2003-08-17 00:15:54 +00:00
void SetOneScroll( Scroll s );
2002-07-27 19:29:51 +00:00
};
#endif