Commit Graph

42 Commits

Author SHA1 Message Date
Glenn Maynard 3e36a05c5f fix song.h!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2008-03-09 01:51:34 +00:00
Steve Checkoway 4991a266df Remove unnecessary CACHED_REGISTER_CLASS. 2007-08-16 09:32:40 +00:00
Glenn Maynard 3c20a64af8 CachedObjectPointer<Course>, CachedObjectPointer<Trail> 2007-08-12 22:26:42 +00:00
Glenn Maynard 4a7d5e96d7 bind GetMeter 2007-04-07 15:44:14 +00:00
Steve Checkoway 4517499f0f lroundf -> lrintf. 2007-01-03 05:05:28 +00:00
Steve Checkoway eb0b26cd82 Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower. 2007-01-02 23:36:44 +00:00
Glenn Maynard c2581734b1 const 2006-11-13 18:28:29 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer c3e39e12a3 Fix several annoying edit mode bugs, mostly by fixing the Song copy
operator and the various uses of it.

- revert file from disk: keeps old BPM.  The BPMS on disk are added to
  the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
  change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
  change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
  it is deleted.  however, if you create a stepchart, don't save it, and exit
  edit mode while looking at a different chart, the chart isn't deleted.

Some existing bugs are not fixed, though:
- delete the last stepchart for a step type.  CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
  real doubles stepcharts.  Exit without doing anything.  CTD.  This is
  probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail.  Trail is now
  broken.  Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
John Bauer 00b40c7468 Change TrailEntry so it uses a StepsID instead of a Steps*.
Now Edit Mode can change the Steps pointers without causing crashes
because of the Trails.  (Exception: deleted song or steps.)
2006-11-10 05:47:10 +00:00
John Bauer 5d2bf93725 Make all uses of the Steps* in the TrailEntry class use an accessor method.
This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
2006-11-10 05:04:09 +00:00
John Bauer a55c69dc6e Push the string for StepsType onto Lua instead of the integer.
This fixes a bug where opening the course editor and pressing down
immediately CTDs.

There is still a bug where sometimes a "random" stepchart has an
uninitialized StepsType.  This can be reliably triggered by going to the
Course Editor, creating a new course, and exiting without changing
the course any.  It will have one random song with an uninitialized
StepsType, causing a CTD.
2006-11-05 00:09:54 +00:00
Steve Checkoway b863eef79a Difficulty. Remove unused deprecated. 2006-10-17 08:41:33 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard 153bcedd40 simpler Lua boilerplate 2006-09-27 20:03:31 +00:00
Glenn Maynard a059d58ed6 GetDifficulty, for same interface as Steps 2006-08-16 21:34:36 +00:00
Glenn Maynard aa525eeb44 add GetArtists 2006-08-16 05:36:40 +00:00
Glenn Maynard a822e8cb45 GetRadarValues() binding 2006-08-16 05:11:32 +00:00
Steve Checkoway 884af552ee Allow combined player steps to have per-player radar values. This doesn't work for trails where it just uses the PLAYER_1 values, same with writing to the catalog file. 2006-07-28 03:34:14 +00:00
Glenn Maynard 473a985512 const 2006-01-17 05:24:42 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Chris Danford dbaec61958 lua method rename: GetDifficulty -> GetCourseDifficulty 2005-08-01 05:11:30 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard d07c68cf26 lua 2005-05-06 11:59:09 +00:00
Chris Danford 534842c2da calculate grade with possible values from radarValues, not from judgement counts from attempted steps 2005-04-26 04:16:45 +00:00
Glenn Maynard 3d7325b457 cache all courses 2005-03-19 11:52:14 +00:00
Chris Danford 2957b7939f mystery -> secret 2005-03-10 22:54:55 +00:00
Glenn Maynard 776060e913 implement course radar value caching 2005-03-07 22:30:39 +00:00
Glenn Maynard 0f010d2321 add Course::FindFixedSong, Attack::FromGlobalCourseModifier 2005-01-03 23:30:56 +00:00
Chris Danford 09193d9e4b cleanup:
use references when passing NoteData
  Have player own a NoteDataWithScoring, not derive from it
2004-10-23 17:43:49 +00:00
Chris Danford c4febdcf62 fix "Trail RadarValues off by -1" 2004-08-22 17:23:08 +00:00
Glenn Maynard d60a482f75 don't calculate radar entries for autogen trail entries 2004-08-05 20:14:28 +00:00
Chris Danford b028934429 clean up Course cache logic 2004-07-24 06:40:51 +00:00
Chris Danford 6564a39a9e cache Trail RadarValues. There needs to be more coordination with Course's Trail cache though. 2004-07-23 05:28:41 +00:00
Chris Danford 27ece3ecbf fix "transform mods that last for a whole song in a course get applied twice"
fix "impossible to get 100% on a course that uses AddMines" by calculating RadarValues after applying mods
Trail::GetRadarValues needs to do caching.  Performance is bad.
2004-07-23 04:45:48 +00:00
Chris Danford 61581479d8 track the current Trail in GameState 2004-06-03 08:22:02 +00:00
Glenn Maynard 549cd7c83f license updates 2004-05-31 21:35:31 +00:00
Glenn Maynard a15ef652c3 Attack::operator==, TrailEntry::operator== 2004-05-31 20:04:56 +00:00
Glenn Maynard 71df5d0d3c fix difficulty icon placement in reverse course songs
fix global modifiers tweening in
2004-05-26 04:33:07 +00:00
Chris Danford 4bb777232d name cleanup: "pNotes" -> "pSteps" 2004-05-24 03:41:39 +00:00
Chris Danford a9338140dc fix linux compile 2004-05-23 21:16:58 +00:00
Chris Danford abfc956e4f refactor Course: move some responsibilities to Trail 2004-05-23 00:53:20 +00:00