Commit Graph

218 Commits

Author SHA1 Message Date
Glenn Maynard 58065fa455 MenuButton -> GameButton 2007-01-13 03:47:36 +00:00
Glenn Maynard f8e9574f1e merge m_SecondaryMenuButton into GameButtonInfo 2007-01-13 00:12:08 +00:00
Glenn Maynard 59e880e760 invert m_SecondaryMenuButton. This way, it only has as many
entries as that game has buttons; adding global GAME_BUTTONs
doesn't need adding dummy entries to each one of these.
2007-01-12 23:44:14 +00:00
Glenn Maynard 369a060afa Don't duplicate the data for common GameButtons.
InputScheme separates the generic, low-level engine data
from the Game*-specific high-level data.  GameButtonType
is a high-level distinction; in fact, it's only needed
for custom GameButtons (eg. DANCE_BUTTON_*), since the
function of generic GameButtons (GAME_BUTTON_*) can simply
be identified by their value--that's why, for example, we
don't have GameButtonType for GAME_BUTTON_COIN.
2007-01-12 22:57:55 +00:00
Glenn Maynard 4d761d588e Define keyboard mappings with InputMapping. Add a
default keyboard mapping, so we don't have to define
mappings for common keys in every game.
2007-01-12 08:00:31 +00:00
Glenn Maynard 7c112811a4 remove Game enum. Games are identified by their Game* or Game->szName. 2007-01-12 05:39:15 +00:00
Glenn Maynard adaf15291c Refactor. Instead of
static Game g_Games[NUM_GAMES] =
{
    { a ... },
    { b ... }
};

do

static Game g_Game_A =
{
  a ...
};

static Game &g_Games[NUM_GAMES] =
{ &g_Game_A, &g_Game_B, &g_Game_C };

This allows much easier organizing data by game, and splitting large arrays
into a dynamically sized array instead of having large fixed-size arrays sized
for the largest one.  The GAME_ array may be deprecated, and this may be done
for styles too.
2007-01-12 05:30:21 +00:00
Glenn Maynard 59da84966f merge code for common GameButtons 2007-01-11 06:31:48 +00:00
Glenn Maynard 606daa7808 consistency 2007-01-11 06:20:34 +00:00
Glenn Maynard c129a5f6dd merge code for common GameButtons (buttons in every game) 2007-01-11 06:10:18 +00:00
Chris Danford 1e3fe0ad38 add bAllowHopo to fix hopo highlighing showing for Game types that don't support hopos 2006-12-02 00:15:59 +00:00
Glenn Maynard 91ee16754f move GetMenuButtonSecondaryFunction into InputScheme 2006-11-21 07:16:19 +00:00
Glenn Maynard 52a878504b Remove redundant m_SecondaryMenuButtons that are the same as
m_DedicatedMenuButton.

Simplify overcomplicated logic.
2006-11-21 07:08:06 +00:00
Chris Danford 5216992b26 change InputScheme for easier maintenance of game definitions 2006-10-23 06:47:54 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Glenn Maynard 2d52c578a5 Most of Game is generic, but not all. Split the InputMapper-
specific stuff apart into InputScheme.  (duplicate szName may go
away)
2006-09-30 08:19:10 +00:00
Glenn Maynard 77d506de27 remove m_szDescription. Nothing uses it, it doesn't do much
to describe the game, and it can't be localized.
2006-09-30 00:42:08 +00:00
Glenn Maynard e256606d7f remove unused m_iNumControllers. That's defined by the style,
not the game.
2006-09-29 23:52:48 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard f4975f1f54 simpler Lua boilerplate 2006-09-27 20:30:29 +00:00
Glenn Maynard 982228b7e6 bind StepsType 2006-09-27 06:09:52 +00:00
Glenn Maynard 6e6ea7971d NUM_GameButton 2006-09-27 04:39:51 +00:00
Glenn Maynard 3311f1992c CabinetLight_Invalid 2006-09-26 21:23:30 +00:00
Glenn Maynard d19fdc9caf NUM_GameController 2006-09-26 20:57:31 +00:00
Glenn Maynard a7b53444f8 NUM_STEPS_TYPES -> NUM_StepsType 2006-09-26 20:22:28 +00:00
Glenn Maynard 578c6d5726 simplify singleton registration 2006-09-21 04:42:45 +00:00
Glenn Maynard 518a9fce85 GetFirstStepsTypeForCurrentGame -> GetFirstStepsTypeForGame
to remove GameState dependency
2006-09-15 07:56:34 +00:00
Glenn Maynard 3183dcf60b GameInputToStyleInput -> GameInputToColumn 2006-09-13 09:22:24 +00:00
Glenn Maynard 9da4770fe0 StyleInput_INVALID -> Column_INVALID 2006-09-13 09:14:03 +00:00
Glenn Maynard 1ceac53825 phase out StyleInput; it's just a column number now 2006-09-13 09:07:04 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Glenn Maynard 1ca5c9a4b7 reduce StyleInput to an int 2006-09-13 00:46:21 +00:00
Steve Checkoway 22dfc2a81b Yes it should. 2006-07-30 23:55:56 +00:00
Steve Checkoway c72c23f035 Remove empty ctor and dtor. This class has no member variables. It would probably work just as well as a namespace but I don't know how that would interact with lua. 2006-07-24 05:56:16 +00:00
Steve Checkoway 52d48a1eac CanAutoGenStepsType. For some reason lights cannot be autogenned. I've moved that from Song to GameManager. Whenever this restriction is lifted (I don't know why the restriction exists), it should be changed to ST_FLAGS_NONE. 2006-07-24 05:01:48 +00:00
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +00:00
Chris Danford 26ce4fa74d split strings and metrics 2006-06-24 05:13:54 +00:00
Steve Checkoway d008b0aa8b Use doubles track spacing and revert m_iInputColumn. 2006-06-24 04:02:43 +00:00
Steve Checkoway 190fa9d8de Fix inputs. 2006-06-24 00:11:01 +00:00
Steve Checkoway 57ffea9e7d Add dance-routine steps/style. 2006-06-16 23:46:36 +00:00
Steve Checkoway f4639fb139 Spacing cleanup. Ugh, this file is long. 2006-06-16 22:51:12 +00:00
Steve Checkoway df6d8cb6ba Make the default NoteSkin a theme metric. That means we can't call GetNoteSkinNames() before the theme is loaded so split out the code to get the names of the the skins for a particular game. 2006-05-20 08:58:53 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 9122e2f935 localize more strings 2006-01-08 19:38:33 +00:00
Chris Danford fc18dbd342 make more strings localizable 2006-01-08 18:40:20 +00:00
Chris Danford 44225ad379 XToThemedString -> XToLocalizedString 2006-01-07 04:11:29 +00:00
Glenn Maynard 9597cf13a4 fixup (this worked because NO_DEFAULT_KEY is defined to -1: "-1-1-1-1") 2005-12-28 08:23:25 +00:00
Glenn Maynard b01308783e unused headers 2005-12-19 00:42:29 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00