Continuation of 53c79c5 - HitObject name changes.
Attempts to eliminate any confusion between OsuHitObject (raw, parsed hit objects) and HitObject (interface for game object types). - Renamed "HitObject" interface to "GameObject", since these objects are specific to gameplay. - Renamed "OsuHitObject" to "HitObject", since these objects are primarily containers for parsed data. Sorry if the name-swapping is confusing; these should be better names in the long run. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ package itdelatrisu.opsu.audio;
|
||||
import itdelatrisu.opsu.ErrorHandler;
|
||||
import itdelatrisu.opsu.Options;
|
||||
import itdelatrisu.opsu.audio.HitSound.SampleSet;
|
||||
import itdelatrisu.opsu.beatmap.OsuHitObject;
|
||||
import itdelatrisu.opsu.beatmap.HitObject;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -262,7 +262,7 @@ public class SoundController {
|
||||
}
|
||||
|
||||
/**
|
||||
* Plays hit sound(s) using an OsuHitObject bitmask.
|
||||
* Plays hit sound(s) using a HitObject bitmask.
|
||||
* @param hitSound the hit sound (bitmask)
|
||||
* @param sampleSet the sample set
|
||||
* @param additionSampleSet the 'addition' sample set
|
||||
@@ -280,11 +280,11 @@ public class SoundController {
|
||||
playClip(HitSound.NORMAL.getClip(), volume, null);
|
||||
|
||||
HitSound.setSampleSet(additionSampleSet);
|
||||
if ((hitSound & OsuHitObject.SOUND_WHISTLE) > 0)
|
||||
if ((hitSound & HitObject.SOUND_WHISTLE) > 0)
|
||||
playClip(HitSound.WHISTLE.getClip(), volume, null);
|
||||
if ((hitSound & OsuHitObject.SOUND_FINISH) > 0)
|
||||
if ((hitSound & HitObject.SOUND_FINISH) > 0)
|
||||
playClip(HitSound.FINISH.getClip(), volume, null);
|
||||
if ((hitSound & OsuHitObject.SOUND_CLAP) > 0)
|
||||
if ((hitSound & HitObject.SOUND_CLAP) > 0)
|
||||
playClip(HitSound.CLAP.getClip(), volume, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user