Commit Graph

54 Commits

Author SHA1 Message Date
sukibaby e0b254968d std::size_t -> size_t
Removing std prefix from all size_t.
2024-10-01 01:46:26 -07:00
Martin Natano 78fb2e9fc3 Decouple <cstddef> 2023-04-20 11:21:29 +02:00
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Brian Phlipot 4a6b1a743c Enable more compiler warnings and treat them as errors. 2023-02-02 11:54:17 -08:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
teejusb aedcbb1b26 Add <numeric> header to PlayerStageStats to use std::accumulate 2019-06-22 18:58:39 -07:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
MrThatKid cf2b25fdcc Implemented SetActualDancePoints & SetPossibleDancePoints (#1527)
* Implemented Dance Point setting

Methods added:
SetPossibleDancePoints
SetActualDancePoints

* Update luadocs to reflect changes

* Fix possible divide by zero

* Merge DP setting functions into one. (#5)

* Merge DP setting functions into one.

Also, ensure that scores of >100% aren't possible
Function usage: SetDancePointLimits(actual, possible)
Clamps to 100% if actual/possible >100%

* Update the luadocs again
2017-08-30 11:57:23 -07:00
Kyzentun 40b25e6220 Fixed conflicts to merge kickbox in. 2015-01-27 18:03:41 -07:00
Kyzentun 47b00c0970 Fixed the rare bug where the life graph shows a gradual decline when it was actually full. 2015-01-26 00:46:47 -07:00
Kyzentun 3fb36af157 Separate styles for players. Notefields positioned between margins. Edit mode works for kickbox. 2014-12-09 22:27:00 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07:00
Kyzentun cab4f4d5d1 Fixed StatsManageer::GetFinalEvalStageStats to not put them in reverse order and not have a 3 stage limit. Fixed PlayerStageStats::AddStats to not overwrite the last entry of the record with the first entry of the record being added. 2014-08-27 00:04:57 -06:00
Kyzentun 28bdd2ca2a Merge branch 'RadarSubscript' of https://github.com/kyzentun/stepmania 2014-08-25 02:35:16 -06:00
Kyzentun 2c49ec7380 Change RadarValues internal implementation to not use a union and use the subscript operator instead of the float* operator for subscripting. 2014-08-22 13:19:17 -06:00
Kyzentun 6be879f06d Fix PlayerStageStats::SetLifeRecordAt to broadcast correct message for the player. Also adds Message::Message(MessageID) constructor. 2014-08-06 04:41:05 -06:00
Kyzentun f8e1e28286 Exposed StepMania::SaveScreenshot to Lua. Added prefix and suffix args for setting the screenshot name and removed the unused index arg. Added GetHighScore to PlayerStageStats and AddScreenshot to Profile so that Lua can imitate ScreenEvaluation's code for adding a screenshot to the profile. Removed hungarian notation from variable names in StepMania::SaveScreenshot. 2014-06-17 00:29:09 -06:00
Kyzentun 17ea38576c Added GetComboList and GetLifeRecord to PlayerStageStats. 2014-02-12 16:19:16 -07:00
Jason Felds c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds 3171f15df2 I should be using + instead of += apparently.
Yay for ##c++ for pointing this out.
2013-04-30 20:36:04 -04:00
Jason Felds c07d4cf78f Let Mac OS X have goodies. 2013-04-29 23:37:10 -04:00
Jason Felds b3126e1705 Use the standard library when possible. 2013-04-28 23:20:16 -04:00
Colby Klein 1ffd4d6527 Revert "remove PlayerStageStats.SetScore and SetCurMaxScore."
This reverts commit 9ecacf742e.
2012-12-27 18:02:56 -08:00
Jason Felds e86aeb66a8 war on -Werror, part 10: more informals. 2012-12-27 11:01:51 -05:00
Flameshadowxeroshin 9ecacf742e remove PlayerStageStats.SetScore and SetCurMaxScore. 2012-12-25 23:22:02 -06:00
AJ Kelly 853af1ea69 [PlayerStageStats] Added GetSongsPassed and GetSongsPlayed Lua bindings. 2012-07-06 23:12:37 -05:00
AJ Kelly d46ddd5331 update lua documentation, fix formatting on PlayerStageStats 2012-06-08 00:14:08 -05:00
Flameshadowxeroshin ebb91feb4a why not. 2012-04-07 20:18:03 +00:00
Flameshadowxeroshin 74c07d8c91 remove the brokenest parts of SetScore for now 2012-03-27 23:20:56 +00:00
Flameshadowxeroshin 4274d999f9 hopefully fix compile 2012-03-27 23:09:35 +00:00
Flameshadowxeroshin 751d4573fe SetCombo part 3/3. 2012-03-27 22:57:53 +00:00
Flameshadowxeroshin b932ed8b82 adding SetCombo part 2 of 3. i'm lazy now 2012-03-27 22:40:46 +00:00
AJ Kelly 805bd89b4d it's ugly, but it should work. Only have mines nullify full combo if [Gameplay] MineHitIncrementsMissCombo=true 2011-11-25 17:31:51 -06:00
AJ Kelly d46db6e9c0 [PlayerStageStats] Hitting a mine no longer gives you full combo.
TODO: make this work with [Gameplay] MineHitIncrementsMissCombo metric
2011-11-25 17:27:36 -06:00
AJ Kelly a589fecb5f [PlayerStageStats] Added GetFailed and GetNumControllerSteps Lua bindings. 2011-11-24 20:51:53 -06:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
AJ Kelly f2e727b466 quiet some log traces 2011-06-03 19:29:53 -05:00
Jason Felds 9af85b48b1 [sm130score] Cleanup, lua prep. 2011-04-10 02:31:29 -04:00
Jason Felds 56c0055d6c [sm130futures] Add another lua hook.
The scoring formulas still need minor work.
2011-04-10 01:37:55 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly 77a57d5db3 update comment 2011-02-27 18:37:00 -06:00
Jason Felds 9d13036e08 Add @briefs to the Luna classes.
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
AJ Kelly e7a6b930ad comment and cleanup 2010-12-29 23:58:26 -06:00
Flameshadowxeroshin 91b2a2224b re-implement SetScore, probably successfully this time 2010-09-25 09:50:56 -05:00
Flameshadowxeroshin 95d7b3ac0a back out non-working SetScore function 2010-09-25 09:42:10 -05:00
Flameshadowxeroshin a617dbdf2c Add SetScore Lua binding to PlayerStageStats. 2010-09-24 22:43:07 -05:00
Flameshadowxeroshin 8fe4efe6f4 Attempt to fix issues with full combos occuring when checkpoints have been missed. 2010-09-13 21:36:32 -05:00
AJ Kelly 5c54a7985e c53f742: add GetBestFullComboTapNoteScore [Chris Danford] 2010-07-03 17:59:38 -05:00
AJ Kelly 2c15ad7921 add PlayerStageStats:GetRadarPossible() and PlayerStageStats:GetRadarActual() Lua bindings. 2010-05-18 18:12:03 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00