Chris Danford
d377c2b1a4
MENU_BUTTON_ -> GAME_BUTTON_
2008-05-21 05:36:09 +00:00
Glenn Maynard
3e36a05c5f
fix song.h!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2008-03-09 01:51:34 +00:00
Vecais Dumais Laacis
fe7d434cd9
fully reset score between songs
2007-08-29 16:13:52 +00:00
Glenn Maynard
3e3c1deea4
We have a lot of duplicate, redundant checks between UNLOCKMAN->SongIsLocked
...
and Song::GetDisplayed/Song::NormallyDisplayed, which leads to inconsistency.
Make UnlockManager::SongIsLocked() handle both. Returns a bitfield; most
cases only need to test true or false.
(Also adds m_bEnabled; not used yet.)
2007-08-13 21:20:51 +00:00
Glenn Maynard
8022c3ba04
Course::pSong to SongID
2007-08-12 22:43:45 +00:00
Glenn Maynard
8278b2e9a1
make FailType a PlayerOption instead of a SongOption; fixes
...
peculiarity that GameState::GetPlayerFailType can implement
fail modes per-player and nothing else can
2007-05-12 23:48:29 +00:00
Steve Checkoway
ef22ba5d57
SONGMAN API change.
2007-04-07 05:11:47 +00:00
Chris Danford
0160e23705
style cleanup: use FOREACH_ENUM( X, x ) everywhere instead of FOREACH_X( x ) for consistency
...
The FOREACH_X defines are not very useful, and they were created back before FOREACH_ENUM was convenient.
2007-02-23 22:29:42 +00:00
Chris Danford
2f7ac6aa3c
Add m_ to StageStats and PlayerStageStats members. There are several methods of these classes with local variable names that are similar to the member names. m_ helps distinguish between those two types.
2006-11-14 11:13:21 +00:00
Glenn Maynard
de6ca466d2
more enum standardization
2006-10-07 04:39:48 +00:00
Glenn Maynard
8a4ddd1515
Invalid
2006-10-07 04:13:43 +00:00
Glenn Maynard
a8dd0c5fdc
GetCurrentStyle()
2006-09-30 22:13:20 +00:00
Glenn Maynard
c7dfb9f2ec
MenuInput -> MenuButton
2006-09-14 20:52:34 +00:00
Glenn Maynard
f1cd95828e
remove MenuInput.IsValid(); if invalid, the button is simply MenuButton_INVALID
2006-09-14 20:31:46 +00:00
Steve Checkoway
35c48c3671
Header cleanup.
2006-08-17 18:52:46 +00:00
Steve Checkoway
0cb22fb806
Apparently VC doesn't like using (group).GroupType as a type (and frankly, I couldn't get g++ to accept it outside of StepMania, either) so use the macros with PO and SO prefixes for PlayerOptions and SongOptions, respectively. Also, pointers to data members can't point to elements of an array (no idea why gcc was allowing it before) so use Assign_n and pass the index separately. (Very annoying, typeof() should really be in the standard.)
2006-08-05 08:02:49 +00:00
Steve Checkoway
1802e603b3
Update to use the new ModsGroup api.
2006-08-05 04:47:01 +00:00
Chris Danford
7ac45c24e4
save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore.
2006-08-05 02:38:05 +00:00
Steve Checkoway
14b91aea37
Don't add random entries (pSong = NULL) to vSongs. Assert that pSong is never NULL.
2006-07-02 22:02:59 +00:00
Steve Checkoway
80698277cf
Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
...
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford
af3e1c571c
move Steps searching out of song into SongUtil so that it can be shared with CourseEntry
2006-06-13 01:10:37 +00:00
Chris Danford
cce97c40b8
move autosync logic out of Player and GameState, into a separate file
2006-02-06 01:23:25 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
a87993bcb1
finish ctor transition
2006-01-15 20:46:15 +00:00
Glenn Maynard
2b4c9e4516
Transition away from Screen(sName).
2006-01-15 19:49:02 +00:00
Glenn Maynard
c5b71c0631
remove logs (this stuff predates the crash handler and has been copied
...
and pasted around since)
jesus we have a lot of screens
2006-01-15 08:54:03 +00:00
Steve Checkoway
ada5f4f00f
Use ASSERT like a function.
2005-12-30 13:19:40 +00:00
Glenn Maynard
dcd1d8f98e
prefer standard find() over Find
2005-12-21 08:33:30 +00:00
Chris Danford
112564dc99
fix [Common] DefaultModifers not being applied in most places
2005-10-27 07:51:37 +00:00
Chris Danford
5d7885c764
move game prefs into PrefsManager
2005-10-27 04:54:45 +00:00
Glenn Maynard
1168414cf0
m_bPastHereWeGo -> !m_bGameplayLeadIn, default false. This is more natural;
...
!m_bPastHereWeGo was the usual case.
2005-10-10 04:36:04 +00:00
Glenn Maynard
b0df6d2d68
broadcast bPastHereWeGo
2005-10-10 02:24:58 +00:00
Glenn Maynard
781017c4c0
ChooseRandomMofifiers -> ChooseRandomModifiers
2005-09-08 01:06:01 +00:00
Chris Danford
bb10c7c21f
pass around InputEventPlus in Screen::Input instead of multiple input structures
2005-09-05 02:26:50 +00:00
Chris Danford
f71cb1cdcf
merge Multiplayer into ScreenGameplay. This needs cleanup.
2005-08-23 21:38:51 +00:00
Chris Danford
881001b6c6
broadcast on PlayMode changed
2005-07-25 03:59:24 +00:00
Glenn Maynard
6e8747d0b6
cleanup
2005-07-12 02:21:28 +00:00
Glenn Maynard
1e05d86b7d
missing includes
2005-07-04 20:52:21 +00:00
Glenn Maynard
a65596e402
cleanup
2005-07-01 04:28:29 +00:00
Chris Danford
6ab20c5ad9
more work on a new course editor
2005-06-28 08:11:30 +00:00
Chris Danford
dda77894e8
Remove CourseEntryType. Instead, treat each CourseEntry property as a filter.
2005-06-27 04:41:36 +00:00
Ben Anderson
8fef7be08d
We just changed the song; update sync data. Fixes assert entering jukebox mode.
2005-06-07 13:32:35 +00:00
Chris Danford
dc82519d3f
don't read unused DifficultiesToShow in ScreenDemonstration
2005-06-05 12:02:33 +00:00
Chris Danford
f15be3b3e5
re-add per-screen DifficultiesToShow
2005-06-05 09:45:30 +00:00
Ben Anderson
0ef2ece2a1
Move DifficultiesToShow into Common metrics. (Fixes assert.)
2005-06-03 21:02:47 +00:00
Chris Danford
e53fe591c8
use m_sName to look up metrics
2005-05-21 01:55:04 +00:00
Glenn Maynard
24321a96b9
fix warning
2005-05-20 23:17:53 +00:00
Chris Danford
8b53c75e48
fix queue size assert when demoing courses
2005-05-20 21:08:08 +00:00
Chris Danford
c04132dcfd
Set PlayMode depending on the Course mods chosen
2005-05-20 17:50:29 +00:00
Chris Danford
b761f6abb0
don't show course mods so often
...
don't show advanced (confusing) mods in demo
2005-05-20 09:06:26 +00:00